ECS
Exec into the ECS Containers
Official News https://aws.amazon.com/blogs/containers/new-using-amazon-ecs-exec-access-your-containers-fargate-ec2/
Reference https://www.ernestchiang.com/en/posts/2021/using-amazon-ecs-exec/
Install the Session Manager Plugin locally.
Attach the following policy to the task's role, so the task can use SSM to create a secure channel to run "exec".
Update the task definition to set
containerDefinitions[].linuxParameters.initProcessEnabled
totrue
.Update the service to...
use the latest task definition; and
enable "execute command".
Ensure "execute command" is ready.
Exec into the container.
Last updated