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
4
votes
3 answers

How to enable container insights on already created ECS Fargate using AWS Console / GUI

How to enable container insights on already created ECS Fargate? I am running multiple ECS clusters for which container insight was not enabled while creating those. Now I have enabled that option in Account Settings. But it is for only the new…
4
votes
3 answers

How to automate deployment to ECS Fargate when new image is pushed to ECR repository

Firstly, this is specific to CDK - I know there are plenty of questions/answers around this topic out there but none of them are CDK specific. Given that best practices dictate that a Fargate deployment shouldn't look for the 'latest' tag in an ECR…
Andrei Sevtsenko
  • 213
  • 4
  • 15
4
votes
2 answers

Airflow: How can I grab the dag_run.conf value in an ECSOperator

I have a process that uses Airflow to execute docker containers on AWS fargate. The docker containers are just running ETL's written in Python. In some of my python scripts I want to allow team members to pass commands and think dag_run.conf will be…
tm_madison
  • 43
  • 3
4
votes
1 answer

How to debug EKS on Fargate not sending logs to Cloudwatch

I have a cluster on EKS that uses a mix of Fargate and managed EC2 nodes. I'm wanting to implement native FluentBit logging for the containers running on Fargate nodes and have tried following these guides:…
4
votes
1 answer

AWS ECS Fargate task parallelization with SQS

I have an SQS FIFO Queue in which I'm sending messages every time I want to process data. I sent batches of data 1-2 times a day and I want to process them with ECS Fargate all together because every message I process takes 10 minutes. Also every…
4
votes
3 answers

ECS Fargate task fails health-check when created with Terraform

I created an ECS cluster, along with a Load Balancer, to expose a basc hello-world node app on Fargate using Terraform. Terraform manages to create my aws resources just fine, and deploys the correct image on ECS Fargate, but the task never passes…
4
votes
1 answer

ECS Fargate autoscaling more rapidly?

I'm load testing my auto scaling AWS ECS Fargate stack which comprises of: Application Load Balancer (ALB) with a target group pointing to ECS, ECS Cluster, Service, Task, ApplicationAutoScaling::ScalableTarget, and…
4
votes
1 answer

AWS Copilot Run Task in Running Container

I have a Django instance running as a Load Balanced Web Service, deployed by AWS Copilot. I would like to run Django Migrations by running a task through Copilot. I tried running a task like this: copilot task run --command "python src/manage.py…
drquinn
  • 467
  • 4
  • 16
4
votes
1 answer

Does AWS charge for Fargate image pull from ECR in the same region?

I have: Fargate container Private ECR repository They're in the same account and region. Will AWS charge me for pulling images? ECR pricing page says Data transferred between Amazon Elastic Container Registry and Amazon EC2 within a single region…
Vova Pytsyuk
  • 599
  • 4
  • 6
4
votes
2 answers

App service not being fount by nginx service after restart on aws ecs fargate with service discovery

I have two services on my cluster: myapp-service and an nginx-service. I'm using service discovery to connect the both and everything works just fine. The problem happens when i deploy a new version of myapp-service and it came with a new…
4
votes
1 answer

Flask application: Using gunicorn on ECS Fargate , How to

Info: I created a flask app and on my Dockerfile last command CMD gunicorn -b 0.0.0.0:5000 --access-logfile - "app:create_app()" I build,tag and upload image on ECR I used this docker image to create an ECS Fargate instance with the following…
Mpizos Dimitris
  • 4,819
  • 12
  • 58
  • 100
4
votes
0 answers

Fargate containers intermittently fail due to S3 environment files timeout

I am currently using a Stepfunction to orchestrate some tasks being run some of which are on AWS Fargate. The Fargate tasks require environment variables that we store in S3 and most of the time it runs fine but I have a low failure rate (>0.1%)…
4
votes
1 answer

Fargate container_definition field "secretOptions" not passsing datadog API_KEY to logConfiguration

I'm trying to send my ECS Fargate logs to Datadog. To do this I need to pass my Datadog API_KEY as a field in the logConfiguration object. I need to secure my API_KEY so I am using AWS Secrets Manager via the secretOptions key of the…
Sogun
  • 301
  • 4
  • 10
4
votes
0 answers

Strapi/React/AWS/ Google/Facebook OAuth error: Grant missing session or misconfigured provider

Background I'm making use of the Strapi Headless CMS as my application backend and React for my frontend. Strapi provides a ready-made plugin for handling authentication (within the application and for making use of third party OAuth providers).…
4
votes
2 answers

How to list ecs tasks using boto3 client when launch type is Fargate?

I am trying to get list of task arns from a cluster (launch type Fargate) using boto3 client. If launch type is EC2 then this works: ecs = boto3.client('ecs') ecs.list_tasks( cluster='cluster_name', …
Sam
  • 53
  • 1
  • 6