Questions tagged [aws-fargate]
66 questions
3
votes
1 answer
Autoscaling and connection routing on AWS ECS for services with a one-to-one client/server relation
I want to deploy an interactive rendering service that uses the WebSocket protocol. The service is containerized and can serve up to N (let's say 1 <= N <= 10) clients. The reason for the small N is that each new connection creates a new process…

Daniel
- 131
- 2
2
votes
1 answer
A Fargate service keeps on restarting - why?
I have a simple web service running on AWS Fargate. It works just fine locally but on Fargate it keeps on restarting every few minutes, i.e. stopping and creating new tasks. There is nothing in the logs.
Any idea what could be wrong / how to…

Jakub Holý
- 393
- 1
- 4
- 15
2
votes
0 answers
AWS Application Load Balancer 502 Bad Gateway
I am using AWS ECS Fargate and have an application load balancer to forward all the connections to the correct instance.
I did already manage to get up a cluster and a service up and running connected to an ALB which has a DNS record created in…

MZaza
- 51
- 8
2
votes
1 answer
Inconsistency between CloudWatch alert and Container Insights
I am running a .NET 6 container in ECS Fargate. My task definition defines the task size:
Task Memory: 1024
Task CPU: 512
The task has 2 containers running - the service and the envoy proxy. The containers define the following:
.NET Service
CPU…

Anthony
- 113
- 1
- 10
2
votes
1 answer
AWS: How do I restrict deployment to ECS clusters using IAM
I have multiple Fargate clusters in a single AWS account. I wish to ensure that a given service account (used by the build pipeline) can only update Services within a given Fargate clusters.
The IAM policy editor prompt for the ecs:UpdateService…

Alastair Irvine
- 1,182
- 11
- 24
2
votes
2 answers
How to get the value of ECS_CONTAINER_METADATA_URI_V4 in AWS ECS container?
The question is pretty straightforward but a little background always could be helpful.
I need to get a container id from the container itself, and the value of it will be used as a logfile name.
According to the docs ECS_CONTAINER_METADATA_URI_V4…

kozlone
- 93
- 1
- 6
2
votes
1 answer
Does Amazon manage time synchronization on ECS/Fargate containers?
I'm trying to use NTP to synchronize local time in ECS containers using the ntpdate command, but it gives me this error:
ntpdate[770]: Can't adjust the time of day: Operation not permitted
Investigating the issue, I realized that local time is…

Aramis Rodríguez Blanco
- 21
- 1
- 3
2
votes
1 answer
Does SES free tier extend to AWS Fargate?
Amazon SES offers a free tier that is eligible for applications running on EC2 instaces or in Elastic Beanstalk containers. However, am I also eligible for the free tier if I am using AWS Fargate?
As far as I understand, formally Fargate is neither…

DmytroL
- 121
- 2
1
vote
0 answers
How are load balancers, health checks, and autoscalers supposed to handle surges?
I have a service which looks like: Internet -> Load Balancer -> Instances
What seems to be happening in my service is the following scenario:
A large surge of user traffic comes in, more than the current instances can handle.
The load balancer does…

Kevin Baragona
- 31
- 1
- 6
1
vote
0 answers
Why can't my ECS Fargate cluster write to my mounted EFS volume, all deployed with Terraform?
I've got a Terraform deployment that deploys a Docker image into ECS Fargate. It attaches an EFS volume to the container. When I SSH into the container, I see the volume mounted, but I am unable to write to it. All of the POSIX permissions seem…

CryptoFool
- 121
- 4
1
vote
2 answers
How to make my ECS Task pull my ECR image
I am trying to create a ECS task and be able to access and pull from ECR, but I am getting an error. How can I resolve this issue?
Raw error:
Cannotpullcontainererror: pull image manifest has been retried 1 time(s): failed to resolve ref…

Arthur Luiz
- 111
- 3
1
vote
0 answers
How can I make sure that AWS does not kill tasks before auto scaling kicks in?
I work on an AWS Fargate service which has a health check configured as well as an autoscaling policy set.
The application needs about 30 - 45 seconds to start.
The application does receive traffic spikes now and then. The autoscaling policy will…

sbrattla
- 1,578
- 4
- 28
- 52
1
vote
2 answers
How to configure service discovery in aws ecs using the new console
In the classic AWS console it was possible to configure service discovery. It looks like this has been dropped in the new console.
How does it then need to be done in the new console?
Thanks

Jan
- 11
- 1
1
vote
1 answer
Fargate task from service with Public IP disabled can't download env file from S3
We have a Fargate service that should be exposed to the internet via a load balancer, and since for tests we had used so far the random Public IP of the task, we decided to disable the Public IP, so that it makes sense for the task of the service to…

Ncifra
- 111
- 1
1
vote
0 answers
How to reduce the time it takes a request to pass from a ALB to the actual Fargate Server?
I have a webhook endpoint where our service provider send a payload which I have to respond to within 2 seconds. I've been getting way too many timeout errors from the service provider, meaning I wasn't able to respond within 2 seconds.
I did some…

Sahil
- 133
- 1
- 6