Details
-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
Description
To access an Amazon ECS container on AWS Fargate or Amazon EC2 there's the AWS ECS execute command in the AWS CLI, which allows to log in to the Amazon ECS container.
See some references:
- Using Amazon ECS Exec to access your containers on AWS Fargate and Amazon EC2
- Use AWS ECS execute command to access a container on AWS Fargate and EC2
Right now we can't use this functionality because our terraform defined tasks don't have the functionality enabled.
It's required to enable prerequisites in the terraform scripts and try if we can login with something similar to:
aws ecs execute-command --cluster <cluster-name> \
--task <task-id> \
--container <container-name> \
--interactive \
--command "/bin/sh"}}
Checklists
Acceptance criteria