AWS ECS Exec

Amazon ECS Execとは

本来SSHでリモート接続できないECS Fagateにリモートログインできる機能

準備

SSM関連ロールを付与

実行

タスクの起動

aws ecs update-service \
--cluster クラスタ名 \
--service サービス名 \
--enable-execute-command

接続

aws ecs execute-command \
--cluster クラスタ名 \
--task タスクID \
--container コンテナ名 \
--interactive \
--command "/bin/sh"

次の記事

AWS Pinepoint