(aws-ecs): Provide an enableExecuteCommand method
See original GitHub issueWhen the enableExecuteCommand
property was added, the enableExecuteCommand()
method was made private. The logic that handles this property should have also been exposed as a method so that this feature could be enabled subsequent to construction of the construct.
Use Case
For use cases where we do not have direct access to construction of the construct, such as in the case of ApplicationLoadBalancedFargateService
.
Proposed Solution
Move all logic related handling of the enableExecuteCommand
configuration property into the enableExecuteCommand()
method and make that method public.
- 👋 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 2 years ago
- Reactions:2
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Using Amazon ECS Exec for debugging
The Amazon ECS Exec Checker script provides a way to verify and validate that your Amazon ECS cluster and task have met the...
Read more >5 Steps: Using Amazon ECS Exec to pass through Fargate/ ...
Amazon ECS Exec uses AWS Systems Manager (SSM) Session Manager to establish a connection with the container, and uses AWS IAM policies to ......
Read more >Use AWS ECS execute command to access a container on ...
To access an Amazon ECS container on AWS Fargate or Amazon EC2, you need to enable ECS Exec on the task definition of...
Read more >How to specify enable_execute_command when starting ...
As an alternative approach, I tried to use aws ecs update-service --enable-execute-command after the containers have started.
Read more >Running commands securely in containers with Amazon ...
The new ECS Exec feature brings to ECS an exec command-like functionality to provide shell access to a running container. This is a...
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
@ryparker Agree with your triage here. And thanks for providing a workaround!
@hoegertn these are side-effect causing methods, which have a legitimate purpose (imho), but I don’t see that for this method here