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
4
votes
0 answers

What's best practice for configuring logs of Spring Boot app running on ECS

We have a suite of microservices that are currently hosted on AWS ECS-Fargate. They are implemented using Spring Boot and packaged as a Docker container using an OpenJDK-based image. Application logging is configured using logging.config from the…
Lex Luthor
  • 523
  • 6
  • 18
4
votes
1 answer

Fargate Use Case Question — Listen to Websocket (Client Side)

I am looking at a use case for fargate where I have some external trigger (perhaps a CloudWatch event) that triggers a Fargate task which opens a websocket connection, listens for a few hours and writes data to S3 and then ultimately closes the…
WIT
  • 1,043
  • 2
  • 15
  • 32
4
votes
2 answers

Horizontal and vertical autoscaling with AWS ECS Fargate

I have a little specific use-case here. I need to auto-scale a distributed web app running on ECS Fargate. The catch is that all the nodes need to keep the same data in memory (so increasing number of nodes does not help with memory pressure). Thus…
0x32e0edfb
  • 707
  • 1
  • 6
  • 18
4
votes
2 answers

How to create a aws fargate service with multiple load balancers

We are trying to create a service with the specified task definition using the create-service command of aws ecs cli. Our task definition is people-cloud:27. aws ecs create-service --cluster cloud1 --service-name docker-service --task-definition…
GJoshi
  • 141
  • 2
  • 9
4
votes
2 answers

AWS EKS Guestbook url not accessible

I'm on Win10 using cygwin and some other choco stuff, everything is installed and runs fine. I was able to install and run stuff from ecs-cli and fargate tutorial and compose too. Now I'm trying EKS and set up cluster and guest book from the Getting…
Diamond Hands
  • 803
  • 1
  • 10
  • 16
4
votes
2 answers

docker cap-add in AWS ECS Fargate

I'm having an issue creating an AWS ECS Fargate-type task that needs docker "-cap-add" runtime options. The AWS documentation seems to be either incomplete or ambiguous regarding this feature. My container needs to mount a CIFS filesystem and when…
4
votes
1 answer

Registering a Fargate service ELB target with correct port using CDK?

I'm trying to add a fargate service as an Application Load Balancer target but it keeps getting the wrong container port. The task definition has two containers: an app on port 8080 and an nginx reverse proxy on port 443. When I try to wire these…
Jay Luker
  • 93
  • 1
  • 6
4
votes
1 answer

How and why of awslogs on ECS (fargate)

I am struggling to get a task running using ECS Fargate, and launched (ecs.runTask) from an AWS SDK script (JS/Node). My current struggle is to get logs from the containers so that I can trouble shoot why they are stopping. I can't seem to get the…
TwainJ
  • 1,187
  • 1
  • 13
  • 26
4
votes
2 answers

How to deploy MySQL docker image on AWS ECS?

I have troubles deploying MySQL image on AWS ECS FARGATE. The cloudformation script that i have is this (dont mind the syntax, i am using python lib Troposphere to manage cloudfromation templates): TaskDefinition( …
Laimonas Sutkus
  • 3,247
  • 2
  • 26
  • 47
4
votes
1 answer

I can't query dynamodb table from AWS Fargate task

I'm setting up a new AWS Fargate task to query Dynamodb. The task is not public, so it doesn't have a public IP address and the subnet in which the task is placed doesn't have the access to the Internet. The Dynamodb table I'm trying to query uses…
chicco.caste21
  • 345
  • 2
  • 13
4
votes
1 answer

How does scale in and scale out works on AWS Fargate?

I have set up an ECS cluster backed up by AWS Fargate. Assigned minimal CPU (256) and Memory (512) in order to test scale in and scale of for this cluster. This cluster scales and scales out successfully depending on the load. However, the scale out…
kk.
  • 3,747
  • 12
  • 36
  • 67
4
votes
2 answers

aws ecs fargate can't fetch secret manager

I'm using AWS ECS service for orchestrate my docker container. Also used Secret Manager for stored and retrieve personal information. I apply SecretsManagerReadWrite policy to my ecsTaskExecutionRole and ecsServiceRole. Before using Fargate, I just…
Hide
  • 3,199
  • 7
  • 41
  • 83
4
votes
2 answers

AWS ECS: Invalid service in ARN (Service: AmazonECS; ...)

Trying to create a ECS Service (on Fargate) with cloudformation but got error: Invalid service in ARN (Service: AmazonECS; Status Code: 400; Error Code: InvalidParameterException; Request ID: xxx). According to error message seems some ARN is…
4
votes
2 answers

Apache airflow run dag operators using kubernetes in AWS

I am evaluating Apache airflow for production use in a data environment and I would like to know if with airflow you can run operators in self contained docker environments on an auto scaling Kubernetes cluster. I found the following operator:…
maldman
  • 53
  • 1
  • 1
  • 5
4
votes
2 answers

Connect AWS API Gateway with Fargate Service without load balancer

Is it possible to connect API Gateway with Fargate Service directly (whitout using a load balancer). I'm working in a development environment and I don't want to waste money in the load balancer.
niqui
  • 1,562
  • 1
  • 16
  • 28