docker exec
docker exec -it {infra_name}-api zsh
ECS_CLUSTER={infra_name}-prd TASK_ARN=$(aws ecs list-tasks --cluster $ECS_CLUSTER --query "taskArns[0]" --output text) CONTAINER_NAME={infra_name}-prd-api aws ecs execute-command --cluster $ECS_CLUSTER \ --task $TASK_ARN \ --container $CONTAINER_NAME \ --interactive \ --command "zsh"
Was this page helpful?