Questions tagged [aws-fargate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

Fargate task from service with Public IP disabled can't download env file from S3

We have a Fargate service that should be exposed to the internet via a load balancer, and since for tests we had used so far the random Public IP of the task, we decided to disable the Public IP, so ...
user avatar
  • 101
0 votes
0 answers
13 views

How does AWS Batch decide when to scale out?

I am planning to run some data processing workloads on AWS Batch in a highly parallel manner (>50 concurrent jobs). These workloads have the unfortunate characteristic that they become more memory ...
user avatar
  • 101
1 vote
0 answers
14 views

How to reduce the time it takes a request to pass from a ALB to the actual Fargate Server?

I have a webhook endpoint where our service provider send a payload which I have to respond to within 2 seconds. I've been getting way too many timeout errors from the service provider, meaning I wasn'...
user avatar
  • 123
0 votes
0 answers
7 views

How to run a Fargate task? My cluster seems to be invisible

I don't know what details to provide here, so bear with me. I want to use AWS Fargate. I successfully uploaded my docker image, created a Task Definition, and created an EKS cluster, but when I ...
user avatar
  • 101
1 vote
0 answers
11 views

ECS task to VPC endpoint/NAT Gateway routing

we have an ECS task that makes Rest API calls of two types: /path1 and /path2 in a Private subnet. We route the requests to Internet Gateway through a NAT gateway present in a public subnet. Flow: ECS ...
user avatar
  • 11
3 votes
3 answers
390 views

Getting "Fargate requires task definition to have execution role ARN to support ECR images." when creating Fargate task but the role is defined

I am trying to deploy a very simple web application to AWS Fargate. I have pushed a docker image of the backend of the application to ECR and I am trying to setup a Fargate task definition for the ...
user avatar
  • 151
0 votes
1 answer
39 views

AWS Fargate Load Balancer timing out

I'm setting up an AWS ECS/Fargate cluster/service/task with a load balancer for the first time. I believe the task is good since I can go to the task's (public) IP directly in a browser and see the ...
user avatar
  • 113
2 votes
1 answer
432 views

Deploying an AWS Load Balancer Controller for EKS Fargate API service

Context I'm trying to deploy a containerised API service to an EKS Fargate cluster and have it service requests from external internet addresses as an over-engineered POC/learning experience. I'm ...
user avatar
  • 21
0 votes
0 answers
22 views

Does the AWS SDK for Java support credentials injected as environment variables?

I would like to get JMX metrics from an ECS instance. I understand that I need to provide AWS SDK with credentials to report metrics from an ECS instance. However, the documentation mentions that I ...
user avatar
  • 1,436
0 votes
0 answers
17 views

System Logs for Docker Container Running Inside AWS Fargate

I have a Docker container deployed with AWS Fargate and I want to have some system logs to track issues like tasks getting killed by the system (container) due to out of memory. Outside Fargate world,...
user avatar
  • 111
1 vote
1 answer
181 views

ECS restarts due to health_check failure when multiple other requests are slow to return

We noticed that our ECS Fargate backend services restart due to a health check response timeout: (service our-site-com-stack-BackendApiServiceStack...) (port 8000) is unhealthy in (target-group arn:...
user avatar
  • 111
0 votes
0 answers
71 views

AWS Fargate is slow when calling system commands. How do I debug it and what can be wrong?

I've been running my PoC on Fargate without many problems. It's a Micronaut Java app with not much happening on its own. I'm using the smallest 256mb/0.25CPU Fargate deployment. I'm running a simple ...
user avatar
0 votes
1 answer
580 views

Is AWS Fargate included in their "first year for free" plan?

I'm working for a cash-strapped not-yet-startup :D. We want to use Amazon for free to deploy a simple Python REST API endpoint. I was told that Amazon has a "1 year for free" tier. I've ...
user avatar
  • 103
0 votes
2 answers
279 views

Selecting subnets for a Service in Fargate

As we can see in the picture above, I can select as many subnets as I want. Does it mean, the tasks in the service are created across these two subnets? Suppose I have one task running, in which ...
user avatar
  • 123
0 votes
1 answer
150 views

How to share directory with Fargate container

I have a fargate container running which needs access to files present on an EC2 instance. Both are in the same network and security groups do not restrict traffic. I tried using sshfs as well as ...
user avatar
  • 23
0 votes
0 answers
2k views

I cannot start an AWS task: CannotPullContainerError

My own image public.ecr.aws/f6q1r4v8/amazonlinuxwithshell:latest fails to start on AWS (FARGATE) in a very weird way: Last status Stopped Stopped reason CannotPullContainerError: inspect image has ...
user avatar
  • 312
1 vote
1 answer
1k views

coredns deployment fails looking for nodes even after fargate profile patch

Problem with installing fargate profiles and coreddns addon; I'm using terraform for some parts and kubetctl for others, the fargate profiles are created via terraform: fargate_profiles = { kube-...
user avatar
0 votes
1 answer
173 views

ECS Fargate Network Interface with src/dest Check disabled

When creating an AWS ECS Fargate Service is there a way to set the generated Network Interface's Source/dest check field to false? The service is set-up following the ECS Fargate getting started guide....
user avatar
  • 139
1 vote
1 answer
623 views

AWS ECS Fargate, container to container communication

I'm having trouble exposing ports on my ECS Fargate containers. I have applied port mapping on container level for my task definition, like so: On the containers themselves, it looks like there is no ...
user avatar
0 votes
1 answer
956 views

Dockerized Laravel application with volume on AWS Fargate issue

this is my scenario, I have a Laravel 8 application that I'm trying to deploy using AWS ECS through AWS Fargate. This is the useful part of my dockerfile: ### ... Previous composer and npm stages ...
user avatar
  • 101
0 votes
0 answers
104 views

How to migrate to Fargate from EC2 in ECS cluster?

I am planning to migrate to Fargate for autoscaling purposes. I already have task definitions for both my staging and production environments which are currently live. There's two ways I thought I can ...
user avatar
  • 123
3 votes
1 answer
928 views

AWS ECS Fargate Target Group Failing HealthChecks

The SpringBoot application is running as an ECS Task in a ECS Service of an AWS Fargate Cluster. The ECS Service is LoadBalanced as such the Tasks spawned by the Services are automatically registered ...
user avatar
0 votes
0 answers
118 views

Terminating AWS ECS services and tasks automatically

We have created a ECS cluster with Fargate and have created few tasks in service to be used in a CI/CD pipeline. Service has desired count of 1. So if we terminate any task, new task comes up ...
user avatar
0 votes
2 answers
302 views

Is AWS Fargate EKS Container to Container communication encrypted at the network level?

I see that ephemeral drives are now encrypted but is network communications between containers encrypted, say for HIPAA compliance. Looking specifically at Serverless Fargate with Kubernetes pods. A ...
user avatar
0 votes
1 answer
62 views

How can I run a containerized task in the cloud 24/7 [closed]

I have just begun to play around with various cloud vendors (AWS, GCP, etc) to get a better understanding of what they have to offer. This is what I am looking to do: I have a task that runs 24/7 that ...
user avatar
  • 13
-1 votes
1 answer
119 views

Suggestions for AWS setup wanted

For my next project, I'm giving AWS and server-less a go, but I'm not sure how to reason about the different AWS services. So here's hoping that someone here has a good feel for it. The project ...
user avatar
2 votes
1 answer
748 views

AWS: How do I restrict deployment to ECS clusters using IAM

I have multiple Fargate clusters in a single AWS account. I wish to ensure that a given service account (used by the build pipeline) can only update Services within a given Fargate clusters. The IAM ...
user avatar
1 vote
0 answers
359 views

Why would AWS Fargate task containers report wildly incorrect memory limits?

Our task definition sets Task Memory to 8192MiB. Its sole docker container running Debian is configured with no memory limits. In the bootstrap, we call cat /proc/meminfo and get a report that shows: ...
user avatar
  • 341
3 votes
1 answer
1k views

How do I resolve a private DNS address from within an AWS Fargate task

I'm trying to setup a connection to a MongoDB Atlas database from an AWS Fargate container. The VPC peering is setup and works and I can successfully connect to the MongoDB Atlas cluster from a ...
user avatar
1 vote
0 answers
131 views

AWS Fargate: The OPENCART_DATABASE_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes

I am trying to run Open cart on AWS Fargate, i am using native bitnami release, following is my docker-compose.yml version: '2' services: mariadb: image: 'docker.io/bitnami/mariadb:10.3-debian-...
user avatar
1 vote
1 answer
165 views

How to assign which user to execute commands inside the container in AWS FARGATE

i'm trying to launch a nodejs container using AWS FARGATE, the problem i'm facing is that fargate gives me this error : cannot find this module "/path/to/file/webrtc.js" And when i execute ...
user avatar
  • 99
0 votes
1 answer
63 views

How to add AWS Fargate service and google cloud run services under same security groups?

I have a web application which consists of an api gateway and two microservices. I want the microservices to remain hidden from the outside world and only the api gateway should be able to access the ...
user avatar
1 vote
1 answer
1k views

Do I need an internal Load Balancer for my ECS Services?

I have an ECS cluster with 3 services(FARGATE), the 3 services are in private subnets. 1 is the web app that is publicly accessible through an Internet-facing Load Balancer and the 2 others are only ...
user avatar
1 vote
1 answer
1k views

AWS Network Load Balancer for Fargate tasks with end to end encryption

We currently have a AWS Fargate service running Nginx behind a AWS Application Load Balancer. In front of this, we also use Cloudflare (hence having Cloudflare origin certificate in ACM). Since the ...
user avatar
  • 11
2 votes
2 answers
1k views

How to get the value of ECS_CONTAINER_METADATA_URI_V4 in AWS ECS container?

The question is pretty straightforward but a little background always could be helpful. I need to get a container id from the container itself, and the value of it will be used as a logfile name. ...
user avatar
  • 93
1 vote
0 answers
452 views

Fargate instance - what is utilizing disk space?

I have a fargate instance i'm running and need disk space (ephemeral storage) for some data processing. I'm running a modified ubuntu image which sits at about 700MBs I'm running the new fargate ...
user avatar
  • 195
0 votes
1 answer
122 views

AWS- Build a Modern Web Application(Mythical Mysfits)-Error with Docker Image

I am new in the area of network and server management with zero experience. I am trying to learn from the tutorial "MythicalMysfits" from AWS. The other post helped and I updated pip to pip3, but now ...
user avatar
5 votes
1 answer
2k views

How to send HTTP requests between AWS ECS services

Currently, I'm trying to figure out how to configure communication between ECS services. I'm planning to have the following setup: Backend service Fronted service One application load balancer I ...
user avatar
  • 93
1 vote
1 answer
502 views

AWS API Gateway to Fargate, only charge when request is running

From the following link, it seems possible to call a Fargate task from the API Gateway: https://aws.amazon.com/blogs/compute/introducing-amazon-api-gateway-private-endpoints/ But, does the task have ...
user avatar
0 votes
1 answer
161 views

How set a fixed private IP for ECS containers?

I have a Task Definition called kafka-zookeeper, it has an Apache Kafka broker and a Zookeeper node in it. Those containers need to communicate with each other (that's easy) and with the kafka and ...
user avatar
0 votes
1 answer
2k views

Can't retrieve instance metadata on AWS Fargate tasks

I have a docker compose configuration that I'm deploying in an ECS Fargate cluster. The tasks are configured with assign_public_ip: ENABLED, and they seem to be getting a public IP, but I'm struggling ...
user avatar
  • 101
0 votes
1 answer
52 views

Troubleshooting fargate autoscaling

I've set up an AWS Fargate cluster to run a service and autoscale its tasks based on the SQS queue. All great so far. The service has got a desired tasks of 1, but then it never actually launches the ...
user avatar
3 votes
1 answer
135 views

Autoscaling and connection routing on AWS ECS for services with a one-to-one client/server relation

I want to deploy an interactive rendering service that uses the WebSocket protocol. The service is containerized and can serve up to N (let's say 1 <= N <= 10) clients. The reason for the small ...
user avatar
  • 131
1 vote
1 answer
3k views

Does Amazon manage time synchronization on ECS/Fargate containers?

I'm trying to use NTP to synchronize local time in ECS containers using the ntpdate command, but it gives me this error: ntpdate[770]: Can't adjust the time of day: Operation not permitted ...
user avatar
1 vote
1 answer
631 views

Does SES free tier extend to AWS Fargate?

Amazon SES offers a free tier that is eligible for applications running on EC2 instaces or in Elastic Beanstalk containers. However, am I also eligible for the free tier if I am using AWS Fargate? As ...
user avatar
  • 111
9 votes
2 answers
7k views

Amazon ECS Task fails with STOPPED (CannotPullContainerError: Error response from daem)

I have set up an AWS VPC and am trying to deploy a functional container in ECS on a Fargate launch type but the task always fails with: STOPPED (CannotPullContainerError: Error response from daem) ...
user avatar
1 vote
1 answer
2k views

A Fargate service keeps on restarting - why?

I have a simple web service running on AWS Fargate. It works just fine locally but on Fargate it keeps on restarting every few minutes, i.e. stopping and creating new tasks. There is nothing in the ...
user avatar
4 votes
1 answer
2k views

How 2 services can talk to each other on AWS Fargate?

I setup a Fargate cluster on AWS. My cluster has the following services: server-A (port 3000) server-B (port 4000) Each service is in the same VPC and have the same security group (any ports, any ...
user avatar
  • 189
0 votes
1 answer
499 views

Unable to set up an Envoy Front Proxy on Amazon ECS

I am trying to set up an envoy front proxy using envoy sidecar containers on Amazon Elastic Container Service (ECS) referring to this link. The envoy sidecar configuration is : #service-envoy.yaml ...
user avatar
0 votes
0 answers
371 views

Fargate task losing connection to MySQL running on AWS RDS when this is set to publicly accessible

So we have a Fargate task running in a private subnet. It connects to a MySQL instance running on AWS RDS in a different VPC that is linked. So far so good, the RDS security group allows communication ...
user avatar