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

How to route traffic to ECS Fargate instance without an Application Load Balancer

I have a Fargate instance running on port 3000. For this service "Service Discovery" is enabled, and corresponding hosted zone is created in Route 53. I have added name servers from this hosted zone in my domain registrar(GoDaddy) DNS setting. I…
5
votes
3 answers

AWS - Batch vs Fargate

I have a docker image. I would like to create a container periodically and execute as a job, say every 1 hour, by creating CloudWatch Rule. As we are using AWS cloud, I am looking at the AWS Batch service. Interestingly there is also a ECS Scheduled…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
5
votes
1 answer

How do you send Fargate EKS Fluent Bit Logs from different services to separate Cloudwatch groups?

I have followed this guide to configure Fluent Bit and Cloudwatch on my EKS cluster, but currently all of the logs go to one log group. I tried to follow a separate tutorial that used a kubernetes plugin for Fluent Bit to tag the services before the…
5
votes
2 answers

How can I grant eks cluster permission to aws sso user?

I deployed a EKS cluster via a IAM user and need to give full cluster permission to other aws sso users. I followed this instruction https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html but still can't make it work. I got below error…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
5
votes
3 answers

ECS Task Definition - When overriding ENTRYPOINT, Docker image's CMD is dropped

I have a Docker Image built with the following CMD # Dockerfile ... CMD ["nginx", "-g", "daemon off;"] When my task definition does not include entryPoint or command the task successfully enters a running state. { "containerDefinitions": [ { …
Jeff V
  • 165
  • 2
  • 9
5
votes
1 answer

Fargate scaling up works consistently but scaling down is not working consistently

We have a simple example of target tracking autoscaling configured for an ecs containerized application based on the CPU and memory. We have 4 alarms autoconfigured by the code below (2 CPU - 1 scale up, 1 scaledown, and 2 memory, 1 scale up and 1…
bstack
  • 2,466
  • 3
  • 25
  • 38
5
votes
2 answers

Best practices to manage docker containers in AWS ECS service

Tech Stack Python (Monolith API) - Flask Framework PostgreSQL We have deployed docker container as follows Docker image is stored in ECR Docker container is deployed in ECS In total 25 docker container is deployed in 3 R5 large EC2 instances (2…
5
votes
1 answer

Add or remove security groups to AWS Fargate ENI for running ECS Task

I deployed an ECS Task to a cluster, using the AWS Fargate launch type. It's currently in the RUNNING state, and everything looks healthy from the CloudWatch Log stream as well. Now that it's running, I need to add a second security group to the…
user189198
5
votes
1 answer

Pod execution role is not found in auth config or does not have all required permissions. How can I debug?

Objective I want o be able to deploy AWS EKS using Fargate. I have successfully made the deployment work with a node_group. However, when I shifted to using Fargate, it seems that the pods are all stuck in the pending state. How my current code…
alt-f4
  • 2,112
  • 17
  • 49
5
votes
0 answers

Scaling a websocket broadcast server

I have a node js websocket server that acts as broadcast server connecting N clients. It uses memory to keep a state. I wanna scale it. I did some research and it seems that ALB + ECS should work. My questions are: Is it possible for the ALB to…
5
votes
2 answers

AWS ECS Fargate udp multicast between containers within VPC

I would like to deploy udp multicast sender and receiver on ECS Fargate within the same VPC. I follow Transit gateway multicast instruction but seems works only for EC2. I'm wondering is ECS fargate support multicast? AWS mentions A non-Nitro…
5
votes
1 answer

AWS Fargate Cluster unable to access Internet with NAT and Internet Gateways in place

I'm trying to deploy containers to a private network Fargate cluster on AWS. I do have an Internet Gateway on my single VPC: And I do have a NAT Gateway for that particular subnet in the very same VPC where my cluster/services live: Routing seems…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
5
votes
1 answer

How to access AWS ServiceAccount token as non-root in a Fargate container?

I set up an EKS cluster which entirely uses pods on Fargate. I want to run something as a non-root user in a container which needs access to S3. For this, I created a ServiceAccount and added an IAM role with the appropriate S3 policies. I started a…
rabejens
  • 7,594
  • 11
  • 56
  • 104
5
votes
1 answer

Logging for Nodejs Express on AWS Fargate

I am developing an app with Nodejs/Express and I am planning to run the app on AWS Fargate. For logging, I want to have the app logs available in AWS Cloudwatch. What is the best way to log Nodejs/Express to Cloudwatch? Is there a library which I…
5
votes
2 answers

How to debug an ECS Fargate service that occasionally restarts task due to unhealthy elastic load balancer health checks

I'm hosting a shiny app on ECS Fargate. It works fairly well but then occasionally when using the app it crashes. I traced it to the following in the events tab: service YYYY has started 1 tasks: task XXX service YYYY has stopped 1 running tasks:…
MGJ-123
  • 614
  • 4
  • 19