Questions tagged [aws-fargate]

66 questions
0
votes
2 answers

Network Load Balancer to Fargate/ECS Cluster - how to map multiple ports/target groups to one service?

Here is my setup: Route53 Alias Record -> Network Load Balancer -> Fargate/ECS Cluster The containers in the cluster have their own TLS certificates and have ports 80 and 443 open. The http server in the container sends a 302 redirect to port 443 if…
0
votes
2 answers

Is persisting data in Fargate containers recommended?

My application - a Postgres/Nginx/Django application powered by docker-compose. 3 separate containers. My production setup - Nginx/Django containers hosted on Amazon ECR. Deployment to a single cluster/service on AWS Fargate. My confusion - should…
user1787531
  • 103
  • 1
  • 2
0
votes
1 answer

Will aws elb address change over time?

I have created a load balancer pointing at my api instances. I got an automatically generated url which looks something like this: xxx-xx-xxxxxxxxxx.us-east-2.elb.amazonaws.com I want to connect it to my own domain name via cname, but before doing…
0
votes
1 answer

How to pass arguments into scheduled task on AWS Fargate?

I have a docker container (derived from PHP-CLI) that may be launched like this locally: docker run php-cli-container php public/index.php argument1 argument2 I uploaded the container to Amazon AWS ECR and implemented it into an ECS scheduled…
andreas
  • 221
  • 1
  • 4
  • 11
0
votes
1 answer

Is it impossible to access rds and elasticache redis in AWS fargate only by setting a role?

I tried to access the aws service rds and elasticache redis through fargate's task role. I connected the full access of the service to the task role, but it was not connected, so I allowed the subnet with the security group setting, and the…
0
votes
1 answer

ECS/Fargate CPU peaks only to 60%

We have created an ECS/Fargate container with 2 VCPU and 4 GB RAM, running a NodeJS server in it. When we do the load testing using JMeter the VCPU reaches a maximum of 60% and flats out with the memory utilization close to 10%. Even when we…
0
votes
1 answer

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 application. I set up an application load balancer…
0
votes
0 answers

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 command from java code, prettier --version.…
0
votes
2 answers

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 subnet will it run then? If there are multiple tasks…
MrRobot9
  • 123
  • 4
0
votes
1 answer

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 mount using cifs.utils package. However because it is…
0
votes
0 answers

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 been retried 5 time(s): failed to resolve ref…
porton
  • 312
  • 1
  • 14
0
votes
1 answer

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. The service is running a squid Proxy, which I…
Jethro
  • 159
  • 1
  • 7
0
votes
0 answers

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 migrate to Fargate, either create a new Task…
0
votes
0 answers

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 automatically. Is there a way in which we can make sure…
0
votes
1 answer

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

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 I want to containerize and deploy to the cloud.…