I'm using the new docker compose ECS integration to create an ecs context for deploying as described here and here. I selected during docker context create ecs my-context
for it to use an existing AWS profile which has us-west-2
configured as its default region. However, docker compose up
always results in it deploying to us-east-1
. I tried exporting DEFAULT_AWS_REGION
but that didn't work either. Is there a way to set the region in the context? It looks like the older docker ecs setup
command asked for the region but that cmd is now deprecated.
I was able to fix this via the AWS CLI directly.
aws configure set default.region eu-central-1
Source: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/configure/set.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With