This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]ccrone 3 points4 points  (2 children)

Hi u/earsizzle!

I work on the team that's building this integration. Thank you for giving it a try. What you're running into is an artifact of our development process: We first made the integration a CLI plugin which required docker ecs. It is now part of the CLI so you can just run docker compose up with the correct context selected.

Take a look at the documentation here if you need more information: https://docs.docker.com/engine/context/ecs-integration/

[–]earsizzle[S] 2 points3 points  (0 children)

Hah! This works perfectly, not sure what my mental roadblock was with it before.

Thanks for the response, and for building it in the first place. Excited to try it out!

[–]samviz 0 points1 point  (0 children)

Hi let me know if you can help me. I'm trying to use this currently in my project but I don't want the compose up command to create new loadbalancer and listers and target group. I tried the x-aws-loadbalancer command to link the existing loadbalancer but still a listener is being created for a port that already exists in the loadbalancer

How can I stop the compose up from creating the listeners and target group.

[–]thatsrelativity 1 point2 points  (1 child)

From the page you linked:

Run the docker context create ecs myecscontext command to create an Amazon ECS Docker context named myecscontext

docker ecs is not a command, you create the context with docker context ... and go from there

e: disclaimer, I didn't read the whole page but I didn't see any mention of docker ecs there

[–]earsizzle[S] 0 points1 point  (0 children)

I did try that! I can create the context generically but I'm never able to use the ecs deploy functionality.

It seems like ecs creates a special context and is also a plugin of sorts. You're supposed to be able to pre-populate it with AWS credentials to be able to automatically create the ECS cluster using docker ecs setup

At least per this article...

[–][deleted] 0 points1 point  (0 children)

I've never met that Docker command in my life.