aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.17k stars 313 forks source link

[ECS][Request]: create IAM Managed Policy for ECS Exec #1668

Open colinbjohnson opened 2 years ago

colinbjohnson commented 2 years ago

Community Note

Tell us about your request

I would like the ECS Policy defined on the page Using Amazon ECS Exec for debugging to be available as an IAM Managed Policy.

The policy is below as well for reference:

{
   "Version": "2012-10-17",
   "Statement": [
       {
       "Effect": "Allow",
       "Action": [
            "ssmmessages:CreateControlChannel",
            "ssmmessages:CreateDataChannel",
            "ssmmessages:OpenControlChannel",
            "ssmmessages:OpenDataChannel"
       ],
      "Resource": "*"
      }
   ]
}

Which service(s) is this request for? ECS, ECS Fargate

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

The problem I'm trying to solve is consistency and versioned updates across all AWS customers. While this is a small amount of effort for AWS to implement in AWS customer ecosystem this is a considerable amount of effort and potential source of errors.

Are you currently working around this issue?

We are creating/managing this policy within an AWS CloudFormation template.

Additional context

I (personally) feel like AWS should have a majority of permission snippets available as IAM Managed Policies or somehow use a the service property enable-exec to enable the required permission behind the scenes.

Attachments If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)

ixti commented 2 months ago

I think this one is covered by AmazonSSMManagedInstanceCore