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
5
votes
1 answer
How to scale up one container using Amazon EC2 Container Service
I am new using Amazon ECS and I would like to know how to set up services in order to scale up / down one container easily.
Here is my project architecture:
website: container with the website, only serving html pages and javascript/css/images.…

Julien Fouilhé
- 201
- 1
- 8
5
votes
1 answer
How to send HTTP requests between AWS ECS services
Currently, I'm trying to figure out how to configure communication between ECS services.
I'm planning to have the following setup:
Backend service
Fronted service
One application load balancer
I have the following options in my mind:
Configure…

kozlone
- 93
- 1
- 6
5
votes
1 answer
create a CloudWatch Alarm when an ECS service unable to consistently start tasks successfully
If I release a new Docker image with a bug to my ECS Service, then the service will attempt to start new Tasks but will keep the old version around if the new tasks fail to start.
In that scenario, it will sometimes (not always) emit an Event to the…

Rich
- 704
- 14
- 30
5
votes
2 answers
How to choose between Elastic Container Service (ECS) or Elastic Container Registry (ECR), Elastic Beanstalk, and Lambda?
Background:
I've worked with EC2 and RDS. Recently I received a query from a client in which he wants to develop both mobile and web applications using Amazon Web Services, and need advice on which service he should go with?
Elastic…

the_jerryyy
- 53
- 5
4
votes
0 answers
Autoscaling AWS ECS services with soft limits
As per the service utilization documentation it is possible to have a Memory utilizations over 100% when using soft limits in the ECS tasks (because you don't want to kill your app with hard limits). For CPU utilization this is always true.
We have…

P_W999
- 281
- 1
- 10
4
votes
3 answers
AWS - shutdown EC2 of an ECS cluster after task is done
I have a small job in docker (10 minutes) which I want to run daily in the morning.
What I'd like to achive from AWS is this:
1. Start EC2 instance.
2. Run my docker job.
3. Shutdown EC2 instance.
What I tried so far:
- Created an ECS task.
-…

Leonti
- 191
- 3
4
votes
1 answer
Unable to start task in ecs. Tasks are in PENDING state
My tasks are in PENDING status
That's what I can see in the events
There is not many information in the service events.
Here is the task definition in json
{
"requiresAttributes": [
{
"value": null,
"name":…

Anthony Kong
- 3,288
- 11
- 57
- 96
4
votes
2 answers
Failed registering Scalable Target when defining auto scale option for ECS
But I am getting this error:
Failed registering Scalable Target
Scalable Target could not register
scalable target: 1 validation error detected: Value '' at 'roleARN'
failed to satisfy constraint: Member must have length greater than or
…

Anthony Kong
- 3,288
- 11
- 57
- 96
4
votes
1 answer
EC2 Instance cannot connect to ECS Cluster
Helo,
I have empty AWS ECS Cluster but I am unable to put instances into it.
I wanted to use Launch templates and Autoscaling Group, but I am unable to assign created EC2 Instance.
The issue is in shown in ecs-agent.log
level=error…

FN_
- 241
- 3
- 8
3
votes
2 answers
Is reverse proxy still required between AWS ALB and application server?
Context
Web application with application server, i.e. Ruby on Rails with puma. Running within a container on AWS ECS with Fargate. Traffic is routed by AWS Application Load Balancer directly to application server running within…

Leszek Zalewski
- 83
- 1
- 6
3
votes
0 answers
How does a unix socket shared through a Docker volume work compared to TCP?
I'm wondering how Docker manages a unix socket when it's shared across containers and how it affects the performance compared to just using TCP.
What I'm trying to accomplish is setting up docker-compose to build an php-fpm, nginx and mysql…

Josue Alexander Ibarra
- 131
- 4
3
votes
1 answer
How to update the minimum & maximum number of running tasks in ECS
I want to update the min and max number of tasks for a service in ECS in a lambda function (python with boto3). It looks like the closest thing is the desired count: desiredCount, but I don't think that is what I am after as my auto-scaling policy…

Snickers3192
- 143
- 1
- 5
3
votes
1 answer
How do I find out the reason a task instance gets deregistered?
We have a bunch of services running in ECS. All of them are set to run at least two instances. With some of the services I notice that at irregular intervals one of the instances gets de-registered. In the logs there are no errors, and the health…

Erik
- 55
- 1
- 6
3
votes
1 answer
Cloudformation ECS keep all taskdefinition revisions
In CloudFormation ECS when I update TaskDefinition tag Image:app:2 and make update-stack, I get only the one last new revision a myapp:2. How I can keep all previous revisions in which case manually rollback to previous revision?

Alebo
- 31
- 2
3
votes
1 answer
How can I access an Instance Store Volume in an ECS Task?
I have a Docker image that downloads a large data set, processes it, creating a ton of temporary files in the process and then uploads the final result to S3. I don't need the temp files to be persistent / survive an instance failure, so I want to…

Benjamin Schug
- 151
- 3