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): ECS Exec Support

See original GitHub issue

As 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

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:22
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
mbeacomcommented, Mar 31, 2021

@SoManyHs Yes, apologies for the delay. I can push this out shortly!

3reactions
SoManyHscommented, Mar 16, 2021

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

Read more comments on GitHub >

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

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