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
0
votes
0 answers

AWS Batch: How to check if requested fargate resources match what's provided

I have a job definition in AWS Batch for a job to be run on Fargate Spot. The definition defines among other things the required VCPU and MEMORY values for the task. Here's an example how it looks like in cloudformation: ResourceRequirements: - …
Val
  • 6,585
  • 5
  • 22
  • 52
0
votes
1 answer

AWS Fargate container fails to start with error CannotPullContainerError: Error response from daem

Looking for advice on what I'm missing. Fargate container fails to start with the error CannotPullContainerError: Error response from daem EDIT: Longer error response Status reason CannotPullContainerError: Error response from daemon: Get…
CPak
  • 13,260
  • 3
  • 30
  • 48
0
votes
1 answer

lambda and fargate errors/timeouts

i have a python api that i have tried on vms, fargate, and lambda. vms - less errors when capacity is large enough fargate - second less errors when capacity is large enough, but when autoscaling, i get some 500 errors. looks like it doesn't…
Gary Leong
  • 199
  • 1
  • 2
  • 12
0
votes
0 answers

Keep Getting Error While Trying to Create Fargate Profile

I've been trying to create a EKS fargate profile on my account, but I keep getting this message: Misconfigured PodExecutionRole Trust Policy; Please add the eks-fargate-pods.amazonaws.com Service Principal What's strange is that I'm doing this in…
zquintana
  • 371
  • 2
  • 5
  • 13
0
votes
1 answer

How do ECS Fargate type containers communicate between each others?

Problem How do ECS Fargate containers communicate between each others? Situation I use docker compose ecs integration. In AWS docker context, docker compose up did a deploy correctly. But reverse proxy doesn't work correctly, maybe because of…
0
votes
1 answer

Cloudwatch Agent loses metrics when service is scaled-in

I have configured an ECS Cluster deployment as detailed below: Services are launched as Fargate instances Services will scale in/out based on the size of an SQS queue Each service produces a metrics time-series A Cloudwatch Agent instance is…
0
votes
1 answer

AWS ECS Fargate Memory usage

I've doubt related to ECS fargate Memory Usage. I've created a Task Definition(0.5vCpu 1GB RAM) with fargate, and launched it via service. I've also created the Cloudwatch Dashboard for monitoring. I've seen that when my task is not in use, It uses…
Ritesh
  • 1
  • 2
0
votes
1 answer

ECS Fargate fails randomly without logs, with container ExitCode 139

I am trying to deploy ETL pipeline on AWS, Pipeline architecture consist of step function to manage the whole pipeline, it consists of 10 parallel (independent) Fargate (pipeline) invoked using map in step function and a Lambda (Error Notifier), I…
0
votes
0 answers

Is there a way to access files for an AWS Fargate container?

I am setting up a Node-RED container in Fargate and attempting to change the settings in for it in order to enable HTTPS connection. However, I cannot identify a way to access settings.js. I mounted it to an EFS, but don't know how to directly…
0
votes
1 answer

Why can't I create an ECS Task Definition with Inference Accelerators attached?

I would like to experiment with attaching Inference Accelerators to an ECS task. I created the following Cloudformation template: { "Resources": { "Task": { "Type" : "AWS::ECS::TaskDefinition", "Properties" : { …
0
votes
1 answer

Solving conflicting route table issue on ALB

tldr; I can't access to my service through the ALB DNS name. Trying to reach the URL will timeout. I noticed that from IGW and Nate there's an isolated routed subnet (Public Subnet 2) and also a task that's not being exposed through the ALB because…
0
votes
1 answer

How to Organize ECS CodePipeline with CloudFormation

I'm trying to build out a series of deployment pipelines for our applications. Our applications are deployed in ECS Fargate. I have created the basic infrastructure using CloudFormation (ALB, main/secondary listeners, main/secondary target groups,…
0
votes
0 answers

botocore.errorfactory.AccessDeniedException: An error occurred (AccessDeniedException) when calling the RunTask operation

The Lambda function subject to this case should execute an ecs:RunTask but fails with the following error: botocore.errorfactory.AccessDeniedException: An error occurred (AccessDeniedException) when calling the RunTask operation: User: arn:aws:sts::…
0
votes
1 answer

How to run different python scripts in AWS Fargate container

I have create a docker container like this: FROM python:3.7-slim-buster COPY . /opt/ WORKDIR /opt/ RUN pip install -r requirements.txt EXPOSE 8080 CMD ["python3", "/opt/myscript.py"] And I call my Fargate container from Lambda like this: response =…
smallbirds
  • 877
  • 12
  • 35
0
votes
1 answer

Fargate public ip yields ECONNREFUSED or ETIMEDOUT

I am in the following situation: I have created a small express.js application with an Alive endpoint, as following: app.get("/", (req, res) => { res.status(200).send({ message: "Alive" }); }); app.listen(5000, '0.0.0.0', () => { …
springsomfan
  • 135
  • 1
  • 5