Questions tagged [amazon-ecs]

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.

261 questions
42
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
  • 521
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…
35
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
  • 455
  • 1
  • 4
  • 8
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
20
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,638
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,638
14
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
  • 401
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
  • 687
13
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…
10
votes
5 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…
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: …
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
9
votes
4 answers

HealthCheck on ECS task without an ELB

We have a Docker container(Spring Boot) that runs in an ECS cluster. We run it without Elastic Load Balancing. We want to update the service without downtime, so when the new task is up and healthy, the old task stops. We have been trying to add a…
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…
Phillip
  • 291
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…
1
2 3
17 18