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

DinD and AWS Fargate CI?

Regarding fargate - since it seems we can't run containers in privileged mode and also cannot mount /var/run/docker.sock, has anyone figured out a good solution for building/publishing docker images inside fargate tasks?
7
votes
1 answer

How to determine if Fargate is using Spot Instances

Background: I'm running docker-compose ecs locally and need to ensure I use Spot instances due to my hobbyist budget. Question: How do I determine and guarantee that instances are running as Fargate Spot instances? Evidence: I have setup the default…
Burgiking
  • 71
  • 1
7
votes
0 answers

AWS Fargate, .NET Core app with SQL Server fails to connect to failover partner following database failover

We are experiencing an issue with a simple .NET Core (3.1) console app connected to a SQL Server database and deployed in a container on AWS Fargate (ECS). SQL Server is a mirrored setup (principal/mirror, with a witness to allow for automatic…
daithimurf
  • 553
  • 3
  • 7
7
votes
1 answer

AWS Fargate task error - ResourceInitializationError: failed to download env files: failed to write to temporary file: AccessDenied

I am trying to access ".env" file stored in S3 bucket from Fargate ECS tasks using the Environment Files configuration (S3 ARN) under Container Definition. But ECS task is failing with Stopped Reason - "ResourceInitializationError: failed to…
a-k
  • 71
  • 1
  • 2
7
votes
1 answer

Rootless-ly Running Docker Daemon inside another Docker container

According to Docker official website: https://docs.docker.com/engine/security/rootless/ it's possible to run Docker Daemon rootless-ly (without root access, no --privileged flag). However I'm convinced this would not work when running from inside a…
piratepete
  • 71
  • 1
  • 2
7
votes
4 answers

Timeout waiting for network interface provisioning to complete

Does anyone know why an ECS Fargate task would fail with this error? Timeout waiting for network interface provisioning to complete. I am running an ECS Fargate task using step functions. The IAM role for step function have access to the task…
pyhotshot
  • 445
  • 8
  • 23
7
votes
3 answers

persistent storage solutions for aws fargate

I'm running an apache webapp on a container in ecs fargate, but I need to be able to persist certain files so that any changes to them are available to all users through all versions of the webapp. Unfortunately, fargate's support for EFS is…
Brandon
  • 111
  • 1
  • 2
  • 6
7
votes
2 answers

"Network bindings - not configured" when running service with AWS Fargate

I'm trying to set up a couple of services with ECS Fargate, provisioned via Terraform. They use the same module, only image, ALB target group, environment variables and port mappings differ. 2 out 3 services start their tasks successfully only one…
7
votes
3 answers

Task running in Fargate is not found with public IP address

I'm creating a simple Spring API, which has a get call that returns some data. I put this in a docker container and tested the container on my localhost and it works (localhost:8080/getbooks returns a list of books). I then pushed this container to…
ivymatch
  • 99
  • 1
  • 6
7
votes
2 answers

ECS Fargate task not applying role

I have an ECS Fargate task running that has a role attached to it. This role has the S3FullAccess policy (and AssumeRole trusted partnership with ECS service). However when trying to put an object into a bucket, I get Access Denied errors. I have…
Damien
  • 1,647
  • 2
  • 16
  • 17
7
votes
1 answer

AWS ECS Fargate ALB Error (Request Timed Out)

I have set up a Docker container running on port 5566 with a small Django application. The Docker image is uploaded into the ECR and later used by Fargate container(s). I have set up an ECS cluster with a VPC. After creating the Task Definition and…
7
votes
6 answers

How to launch a rails console in a Fargate container

I would like to open a Rails console in a Fargate container to interact with my production installation However after searching the web and posting in the AWS forum I could not find an answer to this question Does anyone know how I can do this? This…
7
votes
2 answers

AWS ECS: Monitoring the status of a service update

I am trying to migrate a set of microservices from Docker Swarm, to AWS ECS using Fargate. I have created an ECS cluster. Moreover, I have initialized repositories using the ECR, each of which contains an image of a microservice. I have successfully…
7
votes
1 answer

ECS Fargate log file location

How can I configure ECS Fargate + Cloudwatch to include specific file location. I have app-access.log where my framework puts all of my access logs. Cloudwatch currently consumes logs from my server command IO only. How can I tell ECS Fargate to use…
roxxypoxxy
  • 2,973
  • 1
  • 21
  • 28
7
votes
2 answers

How to add a Fargate Service to Inbound Security Rules?

I have a Fargate Service running in AWS. I use it to run multiple tasks. Some of the tasks connect to an RDS database to query the database. How can I add the Fargate Service to my inboard rules of a Security Group for the RDS database? - Is…
fuzzi
  • 1,967
  • 9
  • 46
  • 90