- Get admin to create these two:
- access key
- secret key
Store them in 1Password
-
Install the AWS CLI tool
-
Run the following to configure your authorization keys into your local environment. Leave the "region name" and "output format" options blank by simply pressing "Enter". See image in comment below.
aws configure
-
Many IAM policies are required. See here for a near-complete list of policies.
-
Create a new ecs docker context via the following command:
docker context create ecs {contextName}
- Change context to the newly created one, thereby ensuring that
docker compose
targets the remote server as opposed to your local device:
docker context use {contextName}
- Deploy or down one or more containers as normal:
docker compose up
or
docker compose down