Skip to main content
SSH Access is an important part of the developer workflow.

Dev SSH Access

SSH into the dev containers using the docker exec command
docker exec -it {infra_name}-api zsh

Production SSH Access

Your ECS tasks are already enabled with SSH access. SSH into the production containers using:
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"