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

Run multiple fargate task with step function

I would like to run 5 instances of my fargate task with step function. ... "Fargate_task": { "Type": "Task", "Resource": "arn:aws:states:::ecs:runTask.sync", "Parameters": { "LaunchType": "FARGATE", "Count":5, …
5
votes
1 answer

Fargate container referencing internal localhost

I have an AWS Task with a single Container Definition. However, the Docker Image that is used actually runs 3 processes. Now I know this is not best practice, however, this is the situation I am working with. The problem I am facing is that one of…
user1638152
  • 577
  • 11
  • 23
5
votes
3 answers

Unable to load AWS credentials from any provider in the chain: WebIdentityTokenCredentialsProvider: Unable to locate specified web identity token file

I am deploying my service using aws eks fargate deployment.yaml file and my service will connnect to dynamodb and while loading the id it throws the error. Even though I have web token file by following command. kubectl exec -n first-namespace…
user123
  • 259
  • 2
  • 6
  • 23
5
votes
3 answers

Pulling docker image from private github package using AWS EKS with AWS Fargate

I wish to deploy a dockerized service with kubernetes on aws. To do so I'm using the recently released AWS EKS with AWS Fargate feature. The service's docker image is stored in a private package on github. To deploy my service I'm using a kubernetes…
5
votes
2 answers

Difference between AWS EKS and ECS Fargate

I used ECS Fargate and it provides containerization, auto-scaling based on request count, CPU and Memory. It is working as expected. I start to explore the AWS EKS feature and I didn't see any advantage in using this as all are provided by ECS…
Harry
  • 3,072
  • 6
  • 43
  • 100
5
votes
1 answer

ECS Fargate NGINX container not showing errors in CloudWatch logs

My nginx Dockerfile: FROM nginx:1.15.12-alpine RUN rm /etc/nginx/conf.d/default.conf COPY ./nginx/nginx.conf /etc/nginx/conf.d # Forward request logs to Docker log collector RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr…
lollercoaster
  • 15,969
  • 35
  • 115
  • 173
5
votes
1 answer

How do I connect to an ECS service running on Fargate?

I'm building a slack app, and my application is expected to receive webhook calls from slack. SO I need to give Slack the "endpoint URL for my service" I'm not sure I understand what AWS bricks I need to put together to make this work. So far, I…
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164
5
votes
1 answer

AuthorizationException: The security token included in the request is expired

I have an AWS Fargate that needs to query Elasticsearch and Dynamodb. The role associated with the cluster has permission to access those services. After a while (about 40 minutes) I start to get this error AuthorizationException:…
5
votes
3 answers

Can I trigger an ECS/Fargate task from a specific file upload in S3?

I know that I can trigger a task when a file is uploaded (per https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatch-Events-tutorial-ECS.html) however, how can I trigger a task when a specific file is uploaded? Amazon seems not to…
Steve
  • 4,457
  • 12
  • 48
  • 89
5
votes
2 answers

Is AWS Fargate true serverless like Lambda? Does it automatically shutsdown when it finishes the task?

This really wasn't clear for me in the Docs. And the console configuration is very confusing. Will a Docker Cluster running in Fargate mode behind a Load Balancer shutdown and not charge me while it's not being used? What about cold starts? Do I…
Mojimi
  • 2,561
  • 9
  • 52
  • 116
5
votes
3 answers

Cannot access instance metadata from within a FARGATE Task

I have an AWS FARGATE Task that is running a relatively simple python application (with a Docker image built from python:3.6-stretch .) It runs fine using Amazon EC2 Tasks (Where an EC2 host provides the docker container); but I'm trying to move…
chander
  • 1,997
  • 2
  • 16
  • 15
5
votes
0 answers

AWS batch Fargate ECS container has no internet connectivity in public subnet

I have deployed an AWS batch job which creates an ECS Fargate task in the background. This is all deployed in a public subnet with internet access. I have verified that running the docker container in a standalone EC2 instance in the same subnet has…
medium
  • 4,136
  • 16
  • 55
  • 66
5
votes
2 answers

AWS ECS Fargate task timezone

I didnt find in Amazon documentation what timezone launched ECS Fargate task use. Do you have any suggestions? I would like to use UTC everywhere. Best regards, Maciej.
user6492999
  • 135
  • 1
  • 1
  • 7
5
votes
2 answers

ECS/Fargate container definition command arguments

We are trying to start a fargate container on AWS ECS. In the container definition we have "command": [ "/bin/bash", "-c", "\"envsubst < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && exec nginx…
David
  • 7,652
  • 21
  • 60
  • 98
5
votes
1 answer

How do I get the docker image ID of a Fargate task using the CLI/SDK?

I want to make sure that the task is running the latest image. Within the container, I can get the docker image ID (such as 183f9552f0a5) by calling http://169.254.170.2/v2/metadata, however I am looking for a way to get it on my laptop. Is this…
aosho235
  • 123
  • 1
  • 2
  • 15