Open MrChrisRodriguez opened 2 years ago
Not related to the ECS plugin, but I hope this might help with deploying your services to AWS ECS.
Maybe instead of looking at defining all that to simply import the cluster name, you could use the x-cluster.Lookup from that project. Not only does it allow to create new cluster or use an existing one (using Lookup), but it will also
ECS Compose-X will understand a mix of docker-compose and override files, CloudFormation syntax for new resources to create, can do cross-accounts discovery, and at the end of the day, "simply" renders CFN templates that you can use and where needed, tweak.
Note: links point to the nightly docs because the 0.18 version is set for release this week and will be mainstream then.
Follow up @MrChrisRodriguez , v0.18.0 is officially out since yesterday, support all of that :)
@MrChrisRodriguez Did you ever figure this out? In my case, it would be great to use x-aws-vpc: Fn::ImportValue: ...
instead of manually looking up the VPC id in the AWS console.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
Trying to use CloudFormation intrinsic functions like
Fn::ImportValue
indocker compose convert
is failing. It prints the following error message along with a goroutine, then exits (albeit with a success instead of an error code):panic: interface conversion: interface {} is map[string]interface {}, not string
The full output is shown below.
Steps to reproduce the issue:
COMPOSE_FILE=filename.yml docker compose convert
Describe the results you expected: I expected generated output cloudformation template to include the Fn::ImportValue intrinsic function.
Describe the results you received: Depending on how I run the command, I either get nothing, get the full string "exampleOutput-ClusterName", or get this error:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker-compose --version
:Output of
docker version
:Output of
docker context show
:Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):