(aws-ecs): ECS Exec Support
See original GitHub issueAs of March 16, ECS now supports remote execution similar to docker exec.
Use Case
As a user, I want the capability to execute commands against an AWS ECS Fargate / EC2 container (similar to docker exec) workloads managed by CDK.
Proposed Solution
CloudFormation’s AWS::ECS::Service
resource currently supports the boolean property: EnableExecuteCommand
Expose this to the aws-ecs’s FargateService
similar to enableEcsManagedTags
Other
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html
- https://aws.amazon.com/blogs/containers/new-using-amazon-ecs-exec-access-your-containers-fargate-ec2/
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html#cfn-ecs-service-enableexecutecommand
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 3 years ago
- Reactions:22
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Using Amazon ECS Exec for debugging - AWS Documentation
With Amazon ECS Exec, you can directly interact with containers without needing to first interact with the host container operating system, ...
Read more >5 Steps: Using Amazon ECS Exec to pass through Fargate ...
The ECS Exec feature requires a task IAM role to grant containers the permissions needed for communication between the managed SSM agent ( ......
Read more >Use AWS ECS execute command to access a container on ...
Amazon ECS Exec allows you to access a container running on an Amazon EC2 instance or AWS Fargate using the AWS CLI. This...
Read more >execute-command — AWS CLI 2.9.8 Command Reference
First time using the AWS CLI? See the User Guide for help getting started. [ aws . ecs ]. execute- ...
Read more >AWS ECS Exec Feature with Fargate- Terraform ...
What comes with it is the full set of features which are ECS specific. One of those new features is ECS Exec. ECS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SoManyHs Yes, apologies for the delay. I can push this out shortly!
We may also want to consider modifying the task role since “the task role will need to have IAM permissions to log the output to S3 and/or CloudWatch if the cluster is configured for these options. If these options are not configured then these IAM permissions are not required.”
See: “Configuring the task role with the proper IAM policy”