Nice to be able to deploy multiple containers via LoadBalancedFargateService
See original GitHub issue-
I’m submitting a …
- 🪲 bug report
- 🚀 feature request
- 📚 construct library gap
- ☎️ security issue or vulnerability => Please see policy
- ❓ support request => Please see note at the top of this template.
-
What is the current behavior? If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
You can deploy only one docker image when you are using ecsPatterns.LoadBalancedFargateService
- What is the expected behavior (or behavior of feature suggested)?
It’ll be nice to be able to deploy multiple images (a la docker-compose) within a service.
ESC-CLI, for example, currently provides a way to include multiple container images through a docker-compose file.
- What is the motivation / use case for changing the behavior or adding this feature?
Make the API, LoadBalancedFargateService
, more useful.
-
Please tell us about your environment:
- CDK CLI Version: 1.4.0 (build 175471f)
- Module Version: 1.4.0
- OS: OSX Mojave
- Language: TypeScript
-
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Task Networking in AWS Fargate | AWS Compute Blog
A better approach would be to deploy the two containers as two different services, each with its own load balancer. This allows clients...
Read more >Deploying multi container to Fargate Cluster | DevOps Training
This video covers, how to create ECS fargate cluster and setup multi container applications using service discovery, it also covers how to ...
Read more >How to Setup AWS ECS Fargate with a Load Balancer
This is a step by step tutorial where I show you how to set up a basic Python based AWS Fargate App within...
Read more >Running Containers on AWS using Amazon ECS and AWS ...
EC2 or AWS Fargate? There are two major models for how to run your containers on AWS: EC2 (Deploy and manage your cluster...
Read more >How to Deploy an Application to AWS Fargate | by Agus Richard
Following a step by step process of deploying an application to AWS Fargate with Elastic Container Service and Application Load Balancer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@realharry you can actually add multiple containers after constructing the LoadBalancedFargateService by using the addContainer method within a taskDefinition.
It would look something like:
The LoadBalancedFargateService exposes the FargateService (service), and the FargateService (service) exposes the FargateTaskDefinition(taskDefinition) which allow you to add a container to a Task Definition.
Feel free to let me know if you have any issues with the above.
Hello @piradeepk and thanks for the
addContainer
tip.Initially I wanted to use a docker-compose.yaml containing two services. I use depends_on and service_healthy to start one service only when the other is up. Seems like your solution doesn’t cover such use case.
Also, only one of the two services needs to be exposed to the ALB.
Can the current API handle my use case?