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
0
votes
0 answers
amazon ecs freeing space on docker storage
I'm trying to cleanup space on docker EBS for Amazon ECS instance. On ECS docker is using separate partition to store all his FS layers:
[ec2-user@]$ sudo lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync…

Андрей Костенко
- 51
- 3
0
votes
1 answer
Docker controller/worker swarm architecture and cross-communication
I'm trying wrap my head around Docker to architect a simple swarm that will eventually be deployed to AWS EC2 Container service.
My task is to take different kinds of jobs in an SQS queue and process them based on some JSON with { type =…

Raychaser
- 101
0
votes
3 answers
AWS Elastic Container Service - Run service in multiple availability zones
I am running long running tasks via ECS.
The container instances are spread over multiple availability zones.
Is it possible to define in ECS that when having more then 1 instance of a task, each task should run on another availability zone (if…

lukaswelte
- 111
- 5
0
votes
0 answers
Amazon ECS container showing strange CPU usage after deployment
I'll preface this by saying I'm fairly new to working with AWS.
Yesterday I deployed a new version of one of our services to our test environment.
Most people are on holidays at the moment, so there isn't a lot of usage of this particular…

mal
- 137
- 6
0
votes
1 answer
AWS ALB Healthchecks Against ECS Services Periodically Failure For No Discernable Reason
We completely host a constellation of services in AWS (no external dependencies as far as these services go). We periodically receive healthcheck failures (502 as public services try to contact the internal service ALBs), as frequent as every hour…

Dustin Oprea
- 560
- 2
- 8
- 19
0
votes
0 answers
Kubernets: what exactly needs to be installed on each server/node and how?
I have coded AWS instances that can serve as nodes where my containers will run. So by default each of these instances have docker installed. This part is working fine.
Eventually i would like to have all these containers managed by Kubernetes -…

mike01010
- 97
0
votes
0 answers
ECS: downtime due to unhealthy containers killed before replacement
I have an ECS cluster configured with ELB healthchecks and autoscaling policy on average CPU.
When there is a spike in traffic, some containers stop responding to ELB healthchecks and are marked as unhealthy. The problem is that ECS starts draining…

revy
- 101
- 1
0
votes
1 answer
Run containers using EC2 reserved instance in fargate ECS
We use AWS fargate with containers.
To reduce price we are looking for options. So question how to use AWS EC2 reserved instances with fargate?
As I understand steps look like this:
purchase reserved instance(s)
create new fargate cluster with…

Inom Turdikulov
- 3
- 1
0
votes
0 answers
Getting 504 response timeouts via AWS ALB, but not directly
Our production environment contains 2 ALBs: a public facing ALB and a private one. Both of these ALBs support HTTP/2.
Now I have a target group which supports HTTP/1.1 containing an ECS service. The very strange thing I'm observing is that:
When…

Ashesh
- 233
- 2
- 13
0
votes
0 answers
AWS ECS: Networking between container Nginx and PHP-FPM on the same host
So I have spent the past two weeks learning about ECS and trying to setup a very basic task with an nginx container and and a PHP app in another container. It seems like I'm very close, but I'm now getting this connection refused error from…

tmath
- 111
- 2
0
votes
1 answer
Will aws elb address change over time?
I have created a load balancer pointing at my api instances. I got an automatically generated url which looks something like this:
xxx-xx-xxxxxxxxxx.us-east-2.elb.amazonaws.com
I want to connect it to my own domain name via cname, but before doing…
0
votes
1 answer
502 bad gateway - aws application load balancer, ecs
I'm having a simple app that I've been experimenting with to learn aws. I first created a http version of a docker image pushed to ecr, ecs using it to create services, and tasks, application load balancing with blue green deployment controlled by…

Gergő Horváth
- 101
0
votes
1 answer
How to pass arguments into scheduled task on AWS Fargate?
I have a docker container (derived from PHP-CLI) that may be launched like this locally:
docker run php-cli-container php public/index.php argument1 argument2
I uploaded the container to Amazon AWS ECR and implemented it into an ECS scheduled…

andreas
- 221
- 1
- 4
- 11
0
votes
1 answer
How can I create an ecs service for my deploy
I’m learning CI/CD pipelines and I’ve come up with a question.
I have a CloudFormation file that creates some static resources for my app (ECR repository, ECS Cluster and some roles)
When creating my deployment pipeline in GitHub Actions I’ve set up…

Arthur Luiz
- 111
- 3
0
votes
0 answers
What defines the AWS ECS task re-creation timeout
I have an AWS ECS Service with 2 REPLICA tasks in it.
When I manually stop one of the tasks, the new one is created in almost exactly 5 minutes.
Similar 5 minute timeout happens when one or more tasks get stopped due to a failure.
here is…

Anton Boritskiy
- 115
- 1
- 7