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]
239 questions
40
votes
11 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
- 501
- 1
- 4
- 3
40
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
- 502
- 1
- 4
- 7
33
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
- 435
- 1
- 4
- 7
27
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
- 411
- 1
- 4
- 9
19
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
- 3,288
- 11
- 57
- 96
15
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
- 3,288
- 11
- 57
- 96
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
- 677
- 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
- 361
- 1
- 2
- 7
12
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
- 223
- 1
- 2
- 5
10
votes
2 answers
AWS Code Build Error : Cannot connect to docker daemon
I was trying to build docker image using aws code build service and then push it to ECR. Commands which i used for it in "buildspec.yml" is specified in below.
version: 0.2
phases:
install:
runtime-versions:
docker: 18
pre_build:
…

Sreeraju V
- 501
- 4
- 17
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
- 10
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
- 293
- 1
- 2
- 8
8
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
- 548
- 1
- 4
- 13