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
15
votes
1 answer

Can't get API Gateway to work with private VPC link (behind a network load balancer to a Fargate container)

Can't get API Gateway to work with private VPC link (behind a network load balancer to a Fargate container) containers Hi all, I've spent the last three days trying to get this to work. My goal is to set an a POST method that redirects to a private…
15
votes
2 answers

How do I link 2 containers running in a AWS ECS task

I am new to ECS and I am trying to deploy a couple of containers in a ECS task using Fargate. I have 1 container running that uses Angular2 and is running on nginx, the other container is the backend and is running on Springboot and uses the port…
Linkavich14
  • 243
  • 1
  • 5
  • 15
15
votes
3 answers

How to debug failed fargate task initialization

I have a fargate task which I have scheduled to run with CloudWatch Event rules, and output a timestamp to a database on a successful run. It also outputs a logfile to CloudWatch for every time it runs. However, there was 1 time where the log file…
15
votes
1 answer

ECS Fargate Pricing

I'd like to make sure I'm interpreting AWS's ECS Fargate pricing model correctly when compared to an m4.large EC2 instance (2vCPU, 8GB Mem) running non stop (even dropping to 1% cpu/mem utilization) for an entire month (730hrs). # Monthly cost…
15
votes
6 answers

I can't run more than 5 tasks in AWS ECS Fargate

I'm facing a problem when using AWS ECS Fargate on a new AWS account. When I try to run run more than 5 tasks, I get an error saying: service feedback was unable to place a task. Reason: You've reached the limit on the number of tasks you can run…
ashraf revo
  • 767
  • 2
  • 12
  • 24
14
votes
2 answers

Add efs volume to ecs fargate

I want use EFS with fargate but I have this error when the task start: ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: stderr: Failed to resolve "fs-xxxxx.efs.eu-west-1.amazonaws.com" - check that your file…
14
votes
2 answers

Fargate with Docker compose Links

We have an application that uses docker compose that contains links. I'm trying to deploy this using aws-cli on Amazon Fargate using this command: ecs-cli compose --project-name myApp --file docker-compose-aws.yml --ecs-params fargate-ecs-params.yml…
13
votes
1 answer

Mounting EFS to AWS Fargate using Terraform - PlatformTaskDefinitionIncompatibilityException error:

I'm receiving this curious error message PlatformTaskDefinitionIncompatibilityException: The specified platform does not satisfy the task definition’s required capabilities I suspect it's something to do with this line although not quite…
manoman687
  • 229
  • 2
  • 9
13
votes
2 answers

aws fargate docker container instances not able to get local hostname

We have a part of our Java application that needs to determine what the local hostname is. But whenever we try to get them via InetAddress.getLocalhost().getHostName() we get: org.quartz.JobExecutionException: java.net.UnknownHostException:…
froi
  • 7,268
  • 5
  • 40
  • 78
13
votes
1 answer

AWS Fargate Cluster Scaling

It's unclear to me exactly how the underlying AWS Fargate cluster works under the covers. Does the underlying cluster still scale up and down as needed when the tasks need more instances, and if so, where is that specified?
Steve
  • 53,375
  • 33
  • 96
  • 141
12
votes
3 answers

Performance issue with AWS Fargate

We have an old Java application running in Jboss As 7.1.1. Currently, this application is running on AWS EC2 instance type t3.medium, which is 2 CPU cores and 4GB memory. We are trying to modernize our applications with CI/CD and AWS Fargate. We…
Bini
  • 321
  • 2
  • 8
12
votes
2 answers

What is the difference between Minimum number of tasks and Desired number of tasks in ECS?

I'm sorry if this question sounds shortsighted but I cannot get my head around the difference between these two parameters. AWS docs don't give me the answer either: For Minimum number of tasks, enter the lower limit of the number of tasks for…
Red Bottle
  • 2,839
  • 4
  • 22
  • 59
12
votes
2 answers

AWS Fargate and its memory management

From AWS documentation I can see that CPU and Memory properties are required in the AWS::ECS::TaskDefinition for Fargate but not in the ContainerDefinition within the resource if Fargate is used. How does this exactly work? If I do not specify it…
Navarro
  • 1,284
  • 2
  • 17
  • 40
12
votes
1 answer

How to run a one-off task on AWS ECS Fargate?

I need my personal project run one-off tasks on ECS with Fargate, like migration, app command etc. The build and deploy pipelines are on Gitlab without job runners. Are there are any possibilities to run a container and die after the command…
Gianmarco Carrieri
  • 771
  • 2
  • 9
  • 20
12
votes
1 answer

Best approach for sending logs from ECS Fargate into Elasticsearch

We have a setup with multiple containers running NodeJS services(node:11-alpine docker image) deployed in AWS ECS Fargate. We already have a running ElasticSearch instance collecting logs from non-Fargate application. I would like to pass the logs…
KasperF
  • 332
  • 1
  • 4
  • 14