ECS
Last updated
Last updated
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 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
to true
.
Update the service to...
use the latest task definition; and
enable "execute command".
Ensure "execute command" is ready.
Exec into the container.