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

When deploying Django into AWS Fargate how do you add the local ip into ALLOWED_HOSTS

I am testing out deploying my Django application into AWS's Fargate Service. Everything seems to run, but I am getting Health Check errors as the Application Load Balancer is sending requests to my Django application using the Local Ip of the host.…
AJ Venturella
  • 4,742
  • 4
  • 33
  • 62
20
votes
3 answers

How to configure a Laravel based app on AWS ECS using Fargate?

Edit: My first question was "how to link containers inside task definition on AWS ECS using Fargate?" But, may be I'm wrong from the start, so I changed my question and keep the content below: I'm trying to deploy a simple Laravel based app on AWS…
FredRoger
  • 1,545
  • 1
  • 12
  • 17
19
votes
4 answers

How fast can ECS fargate boot a container?

What the the minimum/average time for AWS ECS Fargate to boot and run a docker image? For arguments sake, the 45MB anapsix/alpine-java image. I would like to investigate using ECS Fargate to speed up the process of building software locally on a…
Magnus
  • 7,952
  • 2
  • 26
  • 52
18
votes
2 answers

ECS CLI - You cannot specify an IAM role for services that require a service linked role

I'm trying to deploy a container to ECS (Fargate) via aws cli. I'm able to create the task definition successfully, the problem comes when I want to add a new service to my Fargate cluster. This is the command a execute: aws ecs create-service…
Juan Pablo García
  • 181
  • 1
  • 1
  • 3
17
votes
1 answer

StoppedReason in ECS Fargate is truncated

In ECS Fargate, when a task fails, there is a "Stopped Reason" field which gives some useful logging. However I have noticed that it gets truncated after 255 symbols (screenshot below). I checked the network tab and tracked the JSON of the http…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
17
votes
3 answers

Not able to connect to PostgreSQL from AWS ECS Fargate containers

I am setting up an infrastructure using Fargate and RDS for my web application. Here are the basic details of infrastructure. Fargate and RDS are using same VPC and same Subnet We have an Application Load Balancer infront of Fargate Able to…
ajoy sinha
  • 1,156
  • 4
  • 14
  • 30
16
votes
2 answers

How to manage database migrations for a RDS database shared between multiple instances?

I am aware of some potential solutions, but they all feel awful to me. In pipeline (github actions), run a one-off task on fargate to migrate DB before the deployments. Publish some kind of cloudformation event as a deploy hook and use it as a…
16
votes
2 answers

Can AWS Fargate be used without a load balancer?

Initially I expect traffic to my web application to be minimal and I do not want to bear the cost of a load balancer. But if my application gains traction then I may configure a load balancer later. Is it possible to use AWS Fargate without a load…
16
votes
1 answer

How to monitor disk space/file system usage of ecs cluster using fargate

I have created 2 tasks using Fargate and one ECS cluster which is using these 2 tasks in 2 different services. So in short one cluster: 2 services and each services are linked to their own tasks which linked to ECR repo. As per AWS ECS Fargate task…
change198
  • 1,647
  • 3
  • 21
  • 60
16
votes
4 answers

Schedule AWS ECS Fargate to Start and STOP Tasks

Per AWS documentation they say: "Fargate supports scheduling tasks in response to CloudWatch Events. You can easily launch and stop Fargate tasks that you only need to run at certain times" Start of Fargate Tasks can easily be enabled from…
ADV-IT
  • 756
  • 1
  • 8
  • 10
16
votes
7 answers

STOPPED (CannotPullContainerError: API error (500)?

I'm getting this error when running a task on my Amazon Fargate cluster. Has anyone seen run into this before?
Austin K
  • 539
  • 2
  • 5
  • 13
16
votes
7 answers

How to schedule ECS tasks on AWS Fargate

I have created a Task Definition on Elastic Container Service and have successfully run it in a Fargate cluster. However when I create a Scheduled Task in said cluster the option for "Launch Type" is hardcoded to EC2. Is there a way, perhaps through…
Jared S
  • 380
  • 4
  • 14
15
votes
1 answer

AWS ECS exec /usr/local/bin/docker-entrypoint.sh: exec format error

I am pretty new to this Docker world and I am trying to deploy an image (nodejs-typescript service) from aws ECR to aws ECS but when I create the service inside the cluster this error appears and the taks never gets running: exec…
15
votes
2 answers

Cannot get docker healthcheck to work with ECS Fargate v 1.4.0

I have a health check defined for my ECS Fargate Service, it works when I test locally and works with Fargate v 1.3.0. But when I change to Fargate Platform version 1.4.0 it always turns unhealthy. But the actual service is working. I can access the…
Hmazter
  • 350
  • 3
  • 8
15
votes
5 answers

Exposing to public more than 1 port with AWS ECS service and Elastic LoadBalancer

I have service that exposes multiple ports and it worked fine with kubernetes but now we move it to AWS ECS. It seems I can only expose ports via Load Balancer and I am limited to 1 port per service/tasks even when docker defines multiple ports I…