Running commands inside ECS containers - alphagov/notifications-manuals GitHub Wiki

Introduction to ecs containers

Notify App runs on containers deployed on AWS ECS. These are serverless containers running in ecs clusters like this:

https://eu-west-1.console.aws.amazon.com/ecs/v2/clusters/notify/services?region=eu-west-1

Connecting to a container in ECS

You can connect to any container by cloning the notifications-aws repo, following the instructions in the README and then running the ecs-exec.sh script.

gds-cli aws notify-preview-admin -- ecs-exec.sh

You will be prompted to pick which container to connect to.

Troubleshooting

1. Verify if you have awscli

2. Check you have session manager plugin installed

$ session-manager-plugin
The Session Manager plugin was installed successfully. Use the AWS CLI to start a session.