ECS Execの事前確認
aws ecs describe-tasks --region リージョン名 --cluster クラスター名 --task タスク名 | grep enableExecuteCommandECS Execの有効化
aws ecs update-service --region リージョン名 --cluster クラスター名 --service サービス名 --enable-execute-commandECS Execの確認
aws ecs describe-tasks --region リージョン名 --cluster クラスター名 --task タスク名 | grep enableExecuteCommandFargateのコンテナへログインする
aws ecs execute-command --region リージョン名 --cluster クラスター名 --task タスクID --container コンテナ名 --interactive --command "/bin/bash"

コメント