Amazon Elastic Container Service (ECS) is a highly scalable, high performance container management service that supports Docker containers and allows you to easily run applications on a managed cluster of Amazon EC2 instances.
Questions tagged [amazon-ecs]
227 questions
39
votes
10 answers
How do you restart all Tasks of a Service?
We have a task that loads some configuration files from an external data source. After the settings are uploaded we would like to be able to restart all the tasks in a service so that the settings propagate to all instances.
What's the best way to…
Dennkster
- 491
- 1
- 4
- 3
39
votes
7 answers
Update the container of a service in Amazon ECS
What kind of approach is recommended for updating the container of a service which is running in Amazon ECS?
The AWS documentation says: "If you have updated the Docker image of your application, you can create a new task definition with that image…
Petrus Repo
- 492
- 1
- 4
- 7
29
votes
4 answers
Assigning a domain name to an AWS Fargate task
I have an AWS Fargate task running a web app in a public subnet so it has a public address. My question is how to I connect a domain (through Route 53) to that task, so that nothing breaks when I deploy a new version of it.
I know I can use ALB/NLB…
Leo
- 395
- 1
- 3
- 7
26
votes
3 answers
Amazon ECS (Docker): binding container to specific IP address
I'm playing with Amazon ECS (a repackaging of Docker) and I'm finding there's one Docker capability that ECS does not seem to provide. Namely, I would like to have multiple containers running in an instance, and have requests coming in to IP…
Mark R
- 401
- 1
- 4
- 9
18
votes
3 answers
Confused by the role requirement of ECS
I am trying to set up a ECS but so far I have encountered a few permission issue for which I have created some questions on this forum already.
I think I am stuck so far because honestly I cannot find out all these role requirements in one place…
Anthony Kong
- 2,976
- 10
- 53
- 91
14
votes
6 answers
ECS cluster has no ecs instances but two ecs instances are visible in EC2
I am trying to create a very simple cluster in sydney region.
It is a very straightforward setup. I specified the harddisk to be 60G. I want to have two ec2 instances in the cluster.
They show up as expected in ec2 panel.
However the ec2 instances…
Anthony Kong
- 2,976
- 10
- 53
- 91
14
votes
2 answers
CannotPullContainerError on AWS ECS
I can't quite grok the image [registry-url]/[namespace]/[image]:[tag] URL for a Docker Hub image of mine for AWS ECS.
With the Docker client it's just docker run -it hendry/count.
So what would Docker Hub's URL for the image?
hendry
- 667
- 2
- 10
- 23
13
votes
2 answers
ECR cross-account pull permissions
We have two AWS accounts. Account A has ECR repositories and Account B is meant to be able to pull from them.
I have tried setting the repository permission statements in Account A to allow pulling from Account B but AWS claims my policy is not…
Amandil
- 351
- 1
- 2
- 7
10
votes
1 answer
AWS Fargate + Application Load Balancer SSL Termination
I'm trying to configure ECS Fargate behind an Application Loader Balancer (ELBv2), and I would like to terminate the TLS/SSL connections on the ALB, and send HTTP traffic (port 80) to the Fargate images, which listen on port 80.
This is the diagram…
Jeremy Blalock
- 203
- 2
- 5
10
votes
2 answers
How To: Dockerized MongoDB Replication on Elastic Container Service
I have a Node.js app together with a MongoDB database running on AWS ECS. The setup I've got currently is formed of 2 ELB's and 2 Instances running each a Docker container with its assigned service (node/mongo):
Elastic Load Balancer -> Dockerized…
Claudiu S
- 201
- 2
- 5
9
votes
2 answers
Change task placement strategy of Amazon ECS Service
I have about 15 micro-services running in a single ECS cluster with 5 EC2 instances. While setting up the services I did not pay too much attention to the task placement strategy and now I want to change it, but so far I have not found a way to do…
P_W999
- 281
- 1
- 9
9
votes
2 answers
How to get the IP Address for a specific AWS ECS task?
I am attempting to build my own version of service discovery within ECS, since the services that I wish to scale up and down are not HTTP servers and so cannot be managed by ELB. Also, ECS doesn't yet support the user-defined networks feature of…
Jake Feasel
- 231
- 1
- 2
- 6
9
votes
5 answers
Ecs service doesn't update the task definition
In the ecs cluster, I have a service running with 2 ec2 instances. And i update the task definition to take the new docker image. But the old task definition is still running even though there is a new task definition.
I have used the following…
Lahiru Liyanapathirana
- 283
- 1
- 2
- 8
7
votes
1 answer
Docker volume permissions in ECS
I'm migrating an existing application from running on bare EC2 instances to a containerized setup with ECS. I have two situations where I need to share data between containers. One is an EFS share that stores some static and media files, the other…
Joseph Montanaro
- 518
- 4
- 13
7
votes
4 answers
AWS ECS service not starting any tasks
I've set up a cluster, container, task and service on ECS.
After I created the service, it appears to be running with '3 desired tasks', however no tasks are being created as pending or running. Effectively it seems to be doing nothing.
My task…
Jack3311
- 71
- 1
- 1
- 3