question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(aws-ecs): Provide an enableExecuteCommand method

See original GitHub issue

When 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:open
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
madeline-kcommented, Aug 4, 2021

@ryparker Agree with your triage here. And thanks for providing a workaround!

0reactions
LukvonStromcommented, Jan 26, 2022

@hoegertn these are side-effect causing methods, which have a legitimate purpose (imho), but I don’t see that for this method here

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found