This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Ignoring x-aws-
extensions for local deployments
#914
Labels
I am using a fresh install of Docker Desktop 2.5.0.1 stable for Mac that comes with compose cli ver 1.0.2.
I am using this compose file:
This deploys just fine on ECS. When I point to the local
ecsLocal
context though (created withdocker context create ecs --local-simulation ecsLocal
it throws an error - rightly so):While I initially thought (wrongly so) that the container would inherit the same IAM role assigned to the ECS task for the in-region deployment I later figured that the local application sources the AWS credentials from the local
$HOME./aws./credentials
file. Which makes sense.In fact removing the following section from the compose file makes the app start fine (and work fine).
I was wondering, in the spirit of simplicity and being able to re-use the same compose file, would it make sense to add logic to compose cli so that it ignores compose file lines that do not apply to a specific context? Right now I have to have two files (one for ECS deployment and one for ECS local deployment) and maintaining two files may be error-prone.
The text was updated successfully, but these errors were encountered: