Skip to main content

Questions tagged [aws-fargate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
21 votes
2 answers
21k views

AWS Fargate service: scale to zero?

I've recently migrated a small web application to AWS using Fargate and Aurora Serverless. The application doesn't get much traffic so my goal is to save cost while no one is using it. Aurora ...
computmaxer's user avatar
9 votes
2 answers
8k views

Amazon ECS Task fails with STOPPED (CannotPullContainerError: Error response from daem)

I have set up an AWS VPC and am trying to deploy a functional container in ECS on a Fargate launch type but the task always fails with: STOPPED (CannotPullContainerError: Error response from daem) ...
Roy Hinkley's user avatar
7 votes
1 answer
5k views

Using AWS Fargate as web server

Using AWS Fargate, the process to get a custom Docker container running on AWS ECS is relatively straightforward. I was able to successfully test my container over the public IP assigned to the ...
Markus Appel's user avatar
7 votes
2 answers
2k views

Is Fargate a good fit for independent containers that have low resource utilization?

I'm new to docker and ECS, so I might not use the right terms. Please let me know if I need to clarify. My Scenario: I have a number of independent containers. Each container represents a web site. ...
Felix's user avatar
  • 173
6 votes
3 answers
9k views

Getting "Fargate requires task definition to have execution role ARN to support ECR images." when creating Fargate task but the role is defined

I am trying to deploy a very simple web application to AWS Fargate. I have pushed a docker image of the backend of the application to ECR and I am trying to setup a Fargate task definition for the ...
Brandon's user avatar
  • 181
6 votes
2 answers
11k views

AWS Fargate task fails ELB health checks

How can I troubleshoot it further? I am trying to run a simple nginx container but the load balancer complains that health checks are failed and the task does not respond on its ip number, likely ...
Niklas Rosencrantz's user avatar
6 votes
1 answer
6k views

Why does AWS Lambda need to pass ecsTaskExecutionRole to ECS task

I am writing an AWS Lambda function to trigger an ECS Fargate task. I am following the example provided at Run tasks with AWS Fargate and Lambda. While my setup works, there is one of the parts ...
user35042's user avatar
  • 2,721
5 votes
1 answer
7k views

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 ...
kozlone's user avatar
  • 103
4 votes
2 answers
5k views

Do I need an internal Load Balancer for my ECS Services?

I have an ECS cluster with 3 services(FARGATE), the 3 services are in private subnets. 1 is the web app that is publicly accessible through an Internet-facing Load Balancer and the 2 others are only ...
Castro Roy's user avatar
4 votes
1 answer
3k views

How 2 services can talk to each other on AWS Fargate?

I setup a Fargate cluster on AWS. My cluster has the following services: server-A (port 3000) server-B (port 4000) Each service is in the same VPC and have the same security group (any ports, any ...
JLavoie's user avatar
  • 189
4 votes
1 answer
2k views

How to configure an AWS ECS health check for a non web app container

I understand that usually for web app containers there needs to be an HTTP endpoint which responds with 200 for a succesful healthcheck. However, in my case I would have a non web app (a python ...
Khrysmb's user avatar
  • 41
3 votes
1 answer
3k views

AWS ECS Fargate Target Group Failing HealthChecks

The SpringBoot application is running as an ECS Task in a ECS Service of an AWS Fargate Cluster. The ECS Service is LoadBalanced as such the Tasks spawned by the Services are automatically registered ...
Wei Minn's user avatar
  • 151
3 votes
1 answer
1k views

Why would AWS Fargate task containers report wildly incorrect memory limits?

Our task definition sets Task Memory to 8192MiB. Its sole docker container running Debian is configured with no memory limits. In the bootstrap, we call cat /proc/meminfo and get a report that shows: ...
hemp's user avatar
  • 361
3 votes
1 answer
316 views

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 ...
Daniel's user avatar
  • 131
3 votes
1 answer
3k views

Deploying an AWS Load Balancer Controller for EKS Fargate API service

Context I'm trying to deploy a containerised API service to an EKS Fargate cluster and have it service requests from external internet addresses as an over-engineered POC/learning experience. I'm ...
Declan's user avatar
  • 31
3 votes
1 answer
2k views

How do I resolve a private DNS address from within an AWS Fargate task

I'm trying to setup a connection to a MongoDB Atlas database from an AWS Fargate container. The VPC peering is setup and works and I can successfully connect to the MongoDB Atlas cluster from a ...
Fergal Dearle's user avatar
2 votes
1 answer
5k views

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 ...
Jakub Holý's user avatar
2 votes
1 answer
7k views

Is AWS Fargate included in their "first year for free" plan?

I'm working for a cash-strapped not-yet-startup :D. We want to use Amazon for free to deploy a simple Python REST API endpoint. I was told that Amazon has a "1 year for free" tier. I've ...
Axonn's user avatar
  • 123
2 votes
1 answer
5k views

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 ...
Aramis Rodríguez Blanco's user avatar
2 votes
2 answers
2k views

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. ...
kozlone's user avatar
  • 103
2 votes
1 answer
2k views

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 ...
Alastair Irvine's user avatar
2 votes
1 answer
1k views

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 ...
DmytroL's user avatar
  • 121
2 votes
1 answer
467 views

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 ...
Anthony's user avatar
  • 113
2 votes
0 answers
794 views

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 ...
CryptoFool's user avatar
2 votes
0 answers
2k views

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 ...
MZaza's user avatar
  • 51
1 vote
1 answer
2k views

AWS ECS Fargate, container to container communication

I'm having trouble exposing ports on my ECS Fargate containers. I have applied port mapping on container level for my task definition, like so: On the containers themselves, it looks like there is no ...
Roger Johansson's user avatar
1 vote
1 answer
2k views

Dockerized Laravel application with volume on AWS Fargate issue

this is my scenario, I have a Laravel 8 application that I'm trying to deploy using AWS ECS through AWS Fargate. This is the useful part of my dockerfile: ### ... Previous composer and npm stages ...
SamDroid's user avatar
  • 111
1 vote
1 answer
1k views

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 ...
Ncifra's user avatar
  • 111
1 vote
2 answers
550 views

Is AWS Fargate EKS Container to Container communication encrypted at the network level?

I see that ephemeral drives are now encrypted but is network communications between containers encrypted, say for HIPAA compliance. Looking specifically at Serverless Fargate with Kubernetes pods. A ...
xenoterracide's user avatar
1 vote
1 answer
333 views

How to assign which user to execute commands inside the container in AWS FARGATE

i'm trying to launch a nodejs container using AWS FARGATE, the problem i'm facing is that fargate gives me this error : cannot find this module "/path/to/file/webrtc.js" And when i execute ...
logax's user avatar
  • 139
1 vote
1 answer
2k views

AWS Network Load Balancer for Fargate tasks with end to end encryption

We currently have a AWS Fargate service running Nginx behind a AWS Application Load Balancer. In front of this, we also use Cloudflare (hence having Cloudflare origin certificate in ACM). Since the ...
cabz's user avatar
  • 11
1 vote
1 answer
1k views

AWS API Gateway to Fargate, only charge when request is running

From the following link, it seems possible to call a Fargate task from the API Gateway: https://aws.amazon.com/blogs/compute/introducing-amazon-api-gateway-private-endpoints/ But, does the task have ...
matthewatabet's user avatar
1 vote
1 answer
94 views

NAT gateway costs on AWS

I have a django app on AWS using ECS Fargate behind a VPC. A NAT gateway is required with this setup, but most of the costs are from the NAT gateway. How I can reduce this? My docker image is 600 MB. ...
david backx's user avatar
1 vote
0 answers
120 views

AWS Batch on Fargate is not allocating the correct number of vCPUs

I have a web application offloading some resource-intensive tasks to AWS Batch, backed by Fargate. It's a very simple setup - a single queue, a single job definition, and a single compute environment. ...
Tadas T's user avatar
  • 111
1 vote
1 answer
2k views

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 ...
andreas's user avatar
  • 231
1 vote
2 answers
3k views

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 ...
Arthur Luiz's user avatar
1 vote
0 answers
393 views

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 ...
sbrattla's user avatar
  • 1,630
1 vote
2 answers
861 views

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's user avatar
  • 11
1 vote
0 answers
147 views

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'...
Sahil's user avatar
  • 133
1 vote
0 answers
127 views

ECS task to VPC endpoint/NAT Gateway routing

we have an ECS task that makes Rest API calls of two types: /path1 and /path2 in a Private subnet. We route the requests to Internet Gateway through a NAT gateway present in a public subnet. Flow: ECS ...
pds's user avatar
  • 11
1 vote
1 answer
2k views

ECS restarts due to health_check failure when multiple other requests are slow to return

We noticed that our ECS Fargate backend services restart due to a health check response timeout: (service our-site-com-stack-BackendApiServiceStack...) (port 8000) is unhealthy in (target-group arn:...
Zev's user avatar
  • 111
1 vote
1 answer
2k views

coredns deployment fails looking for nodes even after fargate profile patch

Problem with installing fargate profiles and coreddns addon; I'm using terraform for some parts and kubetctl for others, the fargate profiles are created via terraform: fargate_profiles = { kube-...
Anadi Misra's user avatar
1 vote
0 answers
281 views

AWS Fargate: The OPENCART_DATABASE_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes

I am trying to run Open cart on AWS Fargate, i am using native bitnami release, following is my docker-compose.yml version: '2' services: mariadb: image: 'docker.io/bitnami/mariadb:10.3-debian-...
noobie-php's user avatar
1 vote
0 answers
898 views

Fargate instance - what is utilizing disk space?

I have a fargate instance i'm running and need disk space (ephemeral storage) for some data processing. I'm running a modified ubuntu image which sits at about 700MBs I'm running the new fargate ...
w-01's user avatar
  • 215
1 vote
0 answers
468 views

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 ...
Kevin Baragona's user avatar
0 votes
2 answers
2k views

Selecting subnets for a Service in Fargate

As we can see in the picture above, I can select as many subnets as I want. Does it mean, the tasks in the service are created across these two subnets? Suppose I have one task running, in which ...
MrRobot9's user avatar
  • 123
0 votes
1 answer
346 views

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 ...
April Henig's user avatar
0 votes
1 answer
798 views

ECS/Fargate CPU peaks only to 60%

We have created an ECS/Fargate container with 2 VCPU and 4 GB RAM, running a NodeJS server in it. When we do the load testing using JMeter the VCPU reaches a maximum of 60% and flats out with the ...
Praveen Sripati's user avatar
0 votes
2 answers
4k views

Is persisting data in Fargate containers recommended?

My application - a Postgres/Nginx/Django application powered by docker-compose. 3 separate containers. My production setup - Nginx/Django containers hosted on Amazon ECR. Deployment to a single ...
user1787531's user avatar
0 votes
1 answer
608 views

ECS Fargate Network Interface with src/dest Check disabled

When creating an AWS ECS Fargate Service is there a way to set the generated Network Interface's Source/dest check field to false? The service is set-up following the ECS Fargate getting started guide....
Jethro's user avatar
  • 169