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

How to run one-off Docker containers locally (triggered from within a container)

When hosting applications on Heroku I often trigger one-off dynos via the Heroku API from within the code to do heavy lifting in the background. I recently set up some stacks on AWS and followed a similar pattern by using AWS ECS run task. I am not…
André
  • 2,042
  • 1
  • 23
  • 26
10
votes
1 answer

What should I do when Fargate runs out of capacity?

I'm kicking off a single ECS Fargate task with a command such as: aws ecs run-task --cluster Fargate \ --task-definition $ECR_REPO-run-setup --overrides file:///tmp/ecs-overrides-db-migrate.txt \ --count 1 --launch-type FARGATE \ …
Ryan Shillington
  • 23,006
  • 14
  • 93
  • 108
10
votes
2 answers

AWS Fargate - CannotPullContainerError (500)?

I'm using AWS ECS to host my services. When I try to define task with fargate, I'm getting this below problem. CannotPullContainerError: API error (500): Get https://xxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/v2/: net/http: request canceled while…
mugzi
  • 809
  • 4
  • 16
  • 33
9
votes
1 answer

Is there a "health check" endpoint for Grafana running in a Docker container?

I am setting up Grafana in Fargate using Docker. Once the Grafana container is active, is there an endpoint I can call that Fargate could use to determine if the container is "healthy" or not? For example: http://grafana/healthy or…
KSS
  • 821
  • 3
  • 10
  • 26
9
votes
1 answer

AWS Lambda Container Image Support Vs Fargate

I'm evaluating a solution approach using Docker containers. Now that lambda is also supporting container images this falls in my consideration too. I'm evaluating based on the following factors Pricing model of the 2 services Cold start issue Ease…
Kapoor
  • 1,388
  • 11
  • 21
9
votes
3 answers

Launch Type vs. Capacity Provider Strategy for Fargate Service

I have a Fargate service running using NetworkLoadBalancedFargateService from the CDK, and am currently trying to configure autoscaling for the service. When looking at my service through the ECS console, I see that the tasks running under it have…
Saining Li
  • 424
  • 2
  • 10
9
votes
2 answers

How to increase the vm.max_map_count in AWS ECS fargate?

I am trying to run a sonarqube app on the AWS fargate platform. When I run the raw docker image it works like a charm. But If I pass the JDBC properties to the container as an argument I am facing the following issue. Apparently, the elastic search…
9
votes
1 answer

Monitor JVM in AWS Fargate

I have been currently trying to connect VisualVM (A program which monitors the JVM, heap and memory usage etc) to a Spring Boot Application (Java App) running on AWS Fargate in Docker containers. I have been exposing the JMX ports accordingly and I…
John
  • 91
  • 2
  • 5
9
votes
2 answers

Failed to create fargate profile

When attempting to create a fargate profile with amazon eks (using command eksctl create cluster --name myclustername --version 1.14 --fargate), I get the [✔] all EKS cluster resources for "myclustername" have been created [✔] saved kubeconfig as…
Connor Butch
  • 648
  • 1
  • 10
  • 28
9
votes
2 answers

Pod stuck in Pending state when trying to schedule it on AWS Fargate

I have an EKS cluster to which I've added support to work in hybrid mode (in other words, I've added Fargate profile to it). My intention is to run only specific workload on the AWS Fargate while keeping the EKS worker nodes for other kind of…
Bakir Jusufbegovic
  • 2,806
  • 4
  • 32
  • 48
9
votes
2 answers

Microservices in Docker implementation

We are writing our first micro services using Docker containers using Amazon fargate. We have many doubts on the implementation level using Spring Boot We will have multiple micro services in the project, is it a good practice we are writing all the…
anoop
  • 1,604
  • 6
  • 24
  • 50
9
votes
1 answer

Files in AWS Fargate

Is it possible to actualy write/edit/delete files in Fargate ? Since it's serverless and it doesn't really have a filesystem, I couldn't get a clear answer about this. For example, one of our clients needs to write some temporary cache files on the…
Sebastien H.
  • 6,818
  • 2
  • 28
  • 36
9
votes
4 answers

How can I mount an EFS share to AWS Fargate?

I have an AWS EFS share that I store container logs. I would like to mount this nfs share (aws efs) to AWS Fargate. Is it possible? Any supporting documentation link would be appreciated.
Squirrel
  • 1,283
  • 1
  • 13
  • 22
9
votes
1 answer

AWS Load Balancing multiple ports for an ECS Service with Fargate

It's mentioned in the AWS docs that a Classic Load Balancer is required to connect an ECS Service to multiple ports: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html But when using ECS with Fargate, I get the…
hoodsy
  • 894
  • 2
  • 11
  • 19
9
votes
1 answer

How can I get Public IP of my FARGATE ECS task with metadata endpoint or java sdk?

I want to get public IP of my fargate ECS task after container started. I get IPv4Addresses when requested http://169.254.170.2/v2/metadata/ but I don't get public IP of task. When I use runTask(request) method of RunTaskResult, again I don't get…