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

AWS Fargate - pulling from a private repo

When searching for this it yields how to do this using ECS. This requires either putting a config file in a particular directory or setting env variables, neither of which are possible when using Fargate as it's serverless. I feel as if I'm missing…
Alex Jones
  • 360
  • 3
  • 14
8
votes
3 answers

ECS Fargate Task in EventBridge fails with ResourceInitializationError

I have created an ECS Fargate Task, which I can manually run. It updates a Dynomodb and I get logs. Now I want this to run on a schedule. I have setup a scheduled ECS task through EventBridge. However, this does not run. My looking at the…
8
votes
0 answers

AWS ECS Fargate copy local file to container

there is a simple way to copy files from local host to AWS ECS Fargate container? Like Docker cp docker cp :/file/path/in/container/file /host/local/path/file ? I've found some workarounds like: pass through a S3 Bucket (I have to install AWS cli…
8
votes
1 answer

AWS CredentialProviders fail to retrieve credentials in Fargate

I'm running a SpringBoot app in AWS Fargate that uses SecretsManager. This is the what I supply to the AWS SDK as credential providers: public class ProfiledCredentialsProvider extends AWSCredentialsProviderChain { public…
hopscotch
  • 178
  • 5
  • 16
8
votes
2 answers

AWS Step Functions and Fargate task: container runtime error does not cause pipeline to fail

I have a pipeline defined in AWS Step Functions. One step is defined as Fargate Task, which pulls a docker image and run some python code. I've surprisingly found that if the container running in the Fargate task encounters a runtime error the Step…
revy
  • 3,945
  • 7
  • 40
  • 85
8
votes
2 answers

How can I get the TaskId of a Fargate ecs Container

Similar to this question How to get Task ID from within ECS container? but I want to get the TaskId for my Fargate task. How can you do this? Like others I want this for logging information. I'm running a Spring App with ELK stack for logging and…
Derrops
  • 7,651
  • 5
  • 30
  • 60
8
votes
1 answer

How to debug aws fargate task running out of memory?

I'm running a task at fargate with CPU as 2048 and memory as 8192. Task after running some time is stopped with error container was stopped as it ran out of memory. Thing is that task does not fails every time. If I run the same task 10 time it…
ajay singh
  • 135
  • 1
  • 7
8
votes
3 answers

ECS Fargate 1.4 Not Using VPC Endpoints

This is an odd one. I have an ECS service using Fargate v1.4 in a private subnet. Since the tasks don't have access to the Internet, I had to configure VPC Endpoints so that tasks could load what they needed from AWS services (e.g. secrets from…
c1moore
  • 1,827
  • 17
  • 27
8
votes
1 answer

Getting "cli-input-json' : invalid json received"

I am trying to run a service using Fargate launch type in AWS ECS. Following is my service-definition.json file. { "serviceName": "MyService", "cluster": "arn of my cluster", "launchType": "FARGATE", "deploymentConfiguration": { …
xvzf
  • 137
  • 1
  • 10
8
votes
4 answers

AWS ECS Fargate and multi threading

Context: I am new to the "serverless" concept. I am creating a pick and place application. Basically the application will consume/pick messages from 40 queues and send/place these messages in a single outgoing FIFO queue (to maintain the sequence).…
8
votes
1 answer

How does ECS Fargate auto scaling policy know not to kill a working task?

I have an ECS Fargate cluster with a service that generates tasks based on how many messages are in a queue. Each task does long polling on the queue and processes one message at a time. If the queue gets over 5 messages a new task is spun up and it…
Gary Holiday
  • 3,297
  • 3
  • 31
  • 72
8
votes
2 answers

Pass arguments to Python running in Docker container on AWS Fargate

Passing arguments to a Docker container running a Python script can be done like so docker run my_script:0.1 --arg1 val --arg2 val ... I can't seem to figure out how to pass those arguments when running the container on AWS Fargate (perhaps it…
mjkrause
  • 406
  • 1
  • 7
  • 14
8
votes
2 answers

SSL application load balancer on AWS WITHOUT a custom domain

Is it possible to give a application load balancer on AWS a SSL certificate, allowing allowing only HTTPS connections, if I don't want to use a custom domain? Currently developing some internal dashboard applications, so have no need/want for a…
8
votes
5 answers

Run CLI command on ECS Fargate container

How is it possible to run a CLI command within a container that's using ECS/Fargate?
Ste
  • 591
  • 1
  • 9
  • 20
8
votes
2 answers

How is `tmp` folder managed when using ECS Fargate?

I'm currently running some containers on production using AWS Fargate. I'm running an application that from time to time populates some files to /tmp folder. That said, I want to know what happens to this /tmp folder. Is this something managed by…
William Martins
  • 1,969
  • 1
  • 18
  • 22