Questions tagged [aws-fargate]

AWS Fargate is a service within Amazon Web Services that allows for running containers without managing servers or clusters. Use this tag for questions about AWS Fargate. For context, also tag your question with [amazon-ecs] or [amazon-eks] to denote which managed container service you're using.

AWS Fargate is a compute engine for deploying and managing containers without having to manage any of the underlying infrastructure (servers or clusters). AWS Fargate supports Amazon ECS and Amazon EKS.

Usage guidance

Use this tag for questions about AWS Fargate. For context, also tag your question with or to denote which managed container service you're using.

Resources

1725 questions
5
votes
1 answer

Does AWS ECS fargate shutdown container if CPU reaches 100%?

I have setup a ecs task with one container using fargate. The task and container have cpu and memory limits set. I can see that my container will shutdown occasionally for some unknown reason. At the time of shutdown and restart the max cpu is 100%…
mortonprod
  • 183
  • 3
  • 13
5
votes
1 answer

Is it possible to detect Fargate without trying the metadata API

Is there a possibility for an application that is launched as Fargate task to determine if it runs inside Amazon ECS without trying the task metadata endpoint? It would be great if there are environment variables or files that can be read. I also…
Christian Ammer
  • 7,464
  • 6
  • 51
  • 108
5
votes
2 answers

Limit number the number of concurrent Fargate tasks for a given task definition

I have a given AWS fargate task definition. do_something calls a downstream service that does not support more than 4 concurrent consumers. I must therefore find a way to limit the number of concurrent do_something fargate tasks that run at the same…
mabead
  • 2,171
  • 2
  • 27
  • 42
5
votes
1 answer

AWS Fargate - Volumes

I am having a problem with my docker compose file: This is my docker compose file: version: '3' services: nginx-proxy: image: xxxxx.dkr.ecr.xxxxx.amazonaws.com/xxxx:latest container_name: "nginx-proxy" restart: always ports: …
5
votes
2 answers

Operating the Celery Worker in the ECS Fargate

I am working on a project using AWS ECS. I want to use Celery as a distributed task queue. Celery Worker can be build up as EC2 type, but because of the large amount of time that the instance is in the idle state, I think it would be cost-effective…
youngminz
  • 1,364
  • 2
  • 14
  • 23
5
votes
1 answer

Elastic Search on AWS Fargate

Facing a problem while deploying elasticsearch on AWS Fargate Following steps were done : customized my docker image and pushed to AWS ECR. task definition for my elasticsearch service elastic search service fails on bootstrap following is the…
Musab Qamri
  • 111
  • 1
  • 8
5
votes
1 answer

How do I increase number of websocket clients in Nodejs Socket.io server deployed on AWS ECS fargate?

I am running socket server container in AWS Fargate using socket.io Everything works fine with connected users around 800-1000, But when the number of clients increases old socket connection gets disconnected automatically with error transport…
Nitin
  • 2,701
  • 2
  • 30
  • 60
5
votes
2 answers

How can we determine the current region with AWS Fargate

I have a Java application running on AWS Fargate. Regions.getCurrentRegion() returns null from within an AWS Fargate for security reasons Is there an alternative way to determine which region the fargate container is running in?
dogfish
  • 2,646
  • 4
  • 21
  • 37
5
votes
1 answer

Error calling AWS Fargate task from AWS Lambda

I'm trying to call a Fargate (ECS) task from a lambda and am seeing an error pop-up. I've tried looking through the source code but since it's coming back as a response it's not clear what's going on. I'd appreciate any suggestions. The error…
joebuild
  • 536
  • 6
  • 19
5
votes
2 answers

How do I Allow Fargate cluster to access external mongodb database instance

I have built a Fargate cluster which is running my website. The service starts the task for the website properly but stops when it gets to trying to connect to my database instance. MongoError: failed to connect to server [123.456.789.0:27017] on…
4
votes
1 answer

ASP.NET Core 7.0 container: Failed to create CoreCLR, HRESULT: 0x8007000E

That's a result when I receive after trying to run ASP.NET Core 7.0 runtime image in Amazon ECS container (AWS Fargate service). My project in on ASP.NET Core 7.0 Web API. Here is a docker file for image which built on Jenkins and sent to Amazon…
4
votes
1 answer

Django migrations deployment strategy with AWS ECS Fargate?

What is the recommended deployment strategy for running database migrations with ECS Fargate? I could update the container command to run migrations before starting the gunicorn server. But this can result in concurrent migrations executing at the…
ONMNZ
  • 322
  • 3
  • 8
4
votes
1 answer

Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:997)'))

I'm using the requests library in python and keep observing some funny behavior. I am running my code in a docker container in AWS ECS and get the below error when using the request call without a proxy: HTTPSConnectionPool(host='www.foo.com',…
praddc
  • 103
  • 1
  • 6
4
votes
0 answers

Database persistence in ECS Fargate

We are running a MongoDB container in ECS Fargate. The ECS services starts up fine and database is accessible. But how do I make it persistent as we all know that container storage is ephemeral? I have tried to mount efs file system following AWS…
4
votes
2 answers

Converting AWS CloudWatch Metrics Insight query to CDK Metric

I am modifying the sample at https://github.com/cdk-patterns/serverless/tree/main/the-eventbridge-etl/typescript as I want to add a dashboard widget to my CloudFormation Stack that shows the Fargate vCPU usage. I have been able to upgrade the app to…
LNI
  • 2,935
  • 2
  • 21
  • 25