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
6
votes
2 answers

Executing Step Function "Tasks" using ECS Fargate

In Re:Invent 2018, AWS seems to have launched new integrations with Step Functions, which includes ECS Fargate support. https://docs.aws.amazon.com/step-functions/latest/dg/connectors-ecs.html I have been digging up on this, and I am able to get…
6
votes
1 answer

Fargate ThrottlingException Rate exceeded

I am attempting to run 30 Fargate tasks at once and I am receiving "ThrottlingException: Rate exceeded". In the ECS Service Limits, it mentions that the default limit for concurrent Fargate tasks is 50. Am I being throttled for something other than…
johnnyodonnell
  • 1,838
  • 3
  • 16
  • 34
6
votes
2 answers

AWS JAVA SDK get public IP of Task

I have a small problem. I am starting a Task (docker container) via the JAVA SDK. This is working great. But now I want to grab the public IP via the SDK and don't know how. here is my existing code so far. RunTaskRequest request = new…
splitiii
  • 189
  • 1
  • 9
6
votes
2 answers

AWS Fargate deploy: "Invalid action configuration The AWS ECS container ***** does not exist"

I am using terraform to provision the resources required. I have a terraform codepipeline resource and the Production stage reads the imagedefinitions.json file to know which images to deploy: resource "aws_codepipeline" "pipeline" { stage { …
edzillion
  • 3,592
  • 5
  • 31
  • 50
5
votes
1 answer

How to build an ARM64 Docker image via CDK on Github Actions runner

I am attempting to deploy my Fargate service (with ARM64 Graviton processor) in a Github Actions workflow. However, when my Docker attempts to build the image, the RUN statements fail: Warning: The requested image's platform (linux/arm64/v8) does…
alukach
  • 5,921
  • 3
  • 39
  • 40
5
votes
0 answers

.NET Core application running on fargate with memory issues

We are running a .NET application in fargate via terraform where we specify CPU and memory in the aws_ecs_task_definition resource. The service has just 1 task e.g. resource "aws_ecs_task_definition" "test" { .... cpu =…
Noel
  • 5,037
  • 9
  • 46
  • 69
5
votes
1 answer

What happens to old image in ECR with latest tag when I push a new image with same tag?

So, I was new to ECR/ECR I already pushed an image to my repo with latest tag. But what happens when I push another image with latest tag to the same repo? Will the old one tag changes because I want them to be there. Also, I can't change the tag…
5
votes
1 answer

AWS ECS Fargate Memory Utilization vs Local Docker

We are using AWS Fargate ECS Tasks for our spring webflux java 11 microservice.We are using a FROM gcr.io/distroless/java:11 java image. When our application is dockerised locally and deployed as a image inside a docker container the memory…
5
votes
3 answers

uvicorn shutting down after 1-2 minutes on AWS Fargate

I have a deployment of FastAPI 0.81.0 + uvicorn 0.18.3 using Python 3.10.1 on AWS Fargate with an Application Load Balancer. The server runs (as expected) indefinitely in my local Docker, however on AWS the application always shuts down after 1-2…
5
votes
2 answers

Mitigating TCP connection resets in AWS Fargate

I am using Amazon ECS on AWS Fargate, My instances can access the internet, but the connection drops after 350 seconds. On average, out of 100 times, my service is getting ConnectionResetError: [Errno 104] Connection reset by peer error…
5
votes
1 answer

AWS CDK reference existing image on ECR

New to AWS CDK and I'm trying to create a load balanced fargate service with the construct ApplicationLoadBalancedFargateService. I have an existing image on ECR that I would like to reference and use. I've found the…
5
votes
1 answer

Use docker dind with GitLab runner on ecs fargate

I setup a GitLab runner on EC2 which triggers jobs on a Fargate ECS cluster. I followed this tutorial step by step: https://docs.gitlab.com/runner/configuration/runner_autoscale_aws_fargate During my CI/CD I build docker image then I want to reuse…
Howins
  • 487
  • 1
  • 6
  • 18
5
votes
4 answers

How to specify enable_execute_command when starting fargate containers with ecs-cli?

I run aws fargate containers, which are launched using ecs-cli like so: ecs-cli configure --cluster ${cluster_name} --default-launch-type FARGATE --region ${AWS_REGION} --config-name ${config_name} ecs-cli compose --project-name ${service_name}…
Alice Heaton
  • 1,140
  • 11
  • 16
5
votes
1 answer

How to check logs inside ECS Fargate container?

I'm running a springboot application in a ECS fargate cluster. Is there any way I can log into Fargate docker container to see the logs?
5
votes
1 answer

AWS Fargate "CannotPullContainerError failed to extract layer"

I'm attempting to start an ECS Task using an image in our ECR yet it doesn't start, I get the below error: CannotPullContainerError: containerd: pull command failed: time="2021-08-10T13:12:24Z" level=info msg="apply failure, attempting cleanup"…