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.

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

Error parsing parameter 'cli-input-json': Invalid JSON received when i passes the json inline [duplicate]

$targetGroupArn = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" $service = '{ "cluster": "democluster", "serviceName": "demoservice", &...
Ashinsana Mayuminda's user avatar
0 votes
0 answers
27 views

Pull and push image to ECR

How can I push a prebuild image from Docker hub (or another ECR) repository to my fresh ECR repository, pushing from within an unprivileged Fargate container on ECS? Why: I set up Amazon ECS and ...
lony's user avatar
  • 6,995
0 votes
0 answers
14 views

Reactjs container with readonlyrootvolume true in aws fargate taskdef is not working

I have a ReactJS UI container with the readonlyrootvolume flag set to false. However, according to AWS Security Hub complaints, the flag is supposed to be true. Therefore, we updated ...
Babu Jayaraman's user avatar
0 votes
0 answers
11 views

knative with eks fargate

I am using knative serve with AWS eks, and using fargate as node. Now when I am deploying the sample application it is not provisioning ALB or NLB or CLB as ingress or service even though I have ...
Vishal Ranjan's user avatar
-1 votes
0 answers
15 views

how to use AWS::CodeDeploy::BlueGreen hook for nested stack?

I am trying to explore limitations of codedeploy as I am planning to adopt blue green deployment so I have two questions As per the AWS documentation one cannot use AWS::CodeDeploy::BlueGreen hook in ...
prachi garg's user avatar
0 votes
0 answers
11 views

Mimetype is not valid - ECS Fargate with Application Load Balancer

I keep seeing this weird mime type text errors in our servers once in a day. We are using ECS Fargate containers behind an application load balancer. "${${5ia:l2:-j}${bovm:-n}${q9w8:j:-d}${p5v0:g:...
Madhusudhan Sambojhu's user avatar
0 votes
0 answers
15 views

ECS Fargate task keeps failing due to permission issues - jenkins

I have a ECS task that keeps failing due to the following error logs: touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied Can not write to /var/jenkins_home/...
simpleguru's user avatar
1 vote
1 answer
25 views

Can't create a ECS FARGATE_SPOT using Terraform's ECS module

I'm learning Terraform and I'm trying to create a ECS Fargate Spot using the AWS ECS module on Terraform. Here is the HCL script that I'm running: module "ecs" { source = "terraform-...
vegidio's user avatar
  • 874
1 vote
0 answers
22 views

AWS SDK NodeJS - Change ECS Fargate Service AutoScaling minimun tasks

All good? My project demands a lot at a certain time of day. Ex: 7:00AM to 1:00PM So I need to change the code of the minimum autoscaling tasks of my service, ecs, of aws via aws-sdk, but I can only ...
Ton Vital's user avatar
1 vote
1 answer
54 views

"This site can’t be reached" on AWS ECS Fargate deployeed webpage with public ip

I'm trying to deploy ruby on rails application(port 3000) builed by docker + RDS (mysql, port 3306) by ECS fargate. I checked my database and ruby on rails application on cloudwatch, and it's build ...
ddzxc's user avatar
  • 39
0 votes
1 answer
31 views

failed to obtain node locks, tried [/usr/share/elasticsearch/data];

i am trying to run an elasticsearch container inside an aws ecs fargate task (container). i have mounted an efs volume on container and want to map /usr/share/elasticsearch/data of elasticsearch to ...
jahanzaib younis's user avatar
0 votes
0 answers
22 views

How to Re-Use Same Managed Instance ID with SSM when Using ECS Fargate?

I've got a container hosted on ECS Fargate that configures SSM for users to use for dev tasks w/in AWS. The issue I'm running into is that when a new task is started (say with updates to the ...
stonewalker747's user avatar
1 vote
0 answers
50 views

ECS Service connect could not resolve host

I’m trying to use service connect to give a dns to a task (service1) that is on a private subnet and other task (service2) calls using this dns from a public subnet, but when I try do a curl, I ...
Manoel Clemente's user avatar
0 votes
0 answers
53 views

Route53 – ECS Fargate Load Balancer – "This site can't be reached"

I'm trying to attach my ECS Fargate Load Balancer to Route53 but the domain is dead. Load Balancer DNS name works perfectly fine. It's healthy. Backend is deployed and working fine through ECS Fargate ...
busuu's user avatar
  • 586
1 vote
1 answer
29 views

Am I using too many Load Balancers for my ecs cluster with fargate

I have 3 services and a task definition for each service. The Nginx service is upstreaming content from my client and backend load balancers like this: upstream backend { server Backend-ALB-...
Stackerme's user avatar
1 vote
0 answers
68 views

AWS EKS on fargate pull image results in timeout

I have a basic eks cluster up with a fargate profile and want to start a pod in it and get below strange error. If I open a shell from the ec2 instance I can ping google.com so there is no problem ...
Jesper's user avatar
  • 314
0 votes
1 answer
49 views

How can i ingest application logs which runs on aws Fargate to Elastic search using filebeat?

I was using aws fargate to deploy my java application. Previously we were running this on EC2 instances and we had filebeat installed there. I was not able to find anything on using farebeat with Ecs. ...
Nitin k's user avatar
  • 103
0 votes
1 answer
37 views

NextJS + AWS Fargate: How to get Domain host name from Request Object

I have a docker container running an NextJs App on AWS Fargate. This app is behind an AWS ELB and is connected to an AWS Route53 Zone - abc.domain.com The app is running smoothly with no failures. ...
Ajay's user avatar
  • 176
0 votes
0 answers
36 views

AWS EKS: schedule a deployment to scale down and up replicas at specific time using CronJob

I am managing a Kubernetes Cluster running on AWS EKS. To minimize my monthly usage cost I would like to implement a CronJob that scales my deployment replicas to zero during weekends and from 8 pm ...
Rossenberg Villanueva Ramboang's user avatar
-1 votes
0 answers
9 views

By using aws code deploy can i deploy my docker image to aws eks fargate?

By using aws code deploy can i deploy my docker image to aws eks fargate? I have my aws eks cluster with fargate profile , in cloud formation i am doing the automation, i wanted to deploy my docker ...
Cyril Prasan7's user avatar
0 votes
0 answers
71 views

ERROR: You need to enable JavaScript to run this app. - Trying to deploy react docker image to AWS ECR to run on Fargate

I am new to AWS and React. I am trying to deploy a react docker image to AWS ECR to run on Fargate. There is also an ALB that points to the ECS service. In the ECS console task is running. However ...
Anon J's user avatar
  • 23
0 votes
1 answer
42 views

How to set enable execute command on ecs fargate, blue/green deployment with code deploy?

I made ecs fargate and blue/green deployment on "old aws UI". And tried to Enable Command Execution on vscode with aws toolkit. But "[ERROR]: aws.ecs.enableEcsExec: ...
user16613127's user avatar
0 votes
1 answer
51 views

Shared ephemeral file storage between Fargate tasks per Step Function run

I am trying to run a service that does some analysis on 3rd party code using AWS step function and 3 separate fargate tasks that need some kind of shared storage. Two of the tasks are trusted, but one ...
Ephraim's user avatar
  • 8,362
0 votes
0 answers
52 views

Approaches to migrate Lambda to Fargate?

Current architecture: DynamoDB stream --> Lambda --> SNS --> Multiple clients I need to migrate the lambda to fargate. What i have thought of ? I will create a new fargate which will listen ...
wolf's user avatar
  • 154
-1 votes
0 answers
34 views

How to run php migration command in ECS fargate?

How to run Php artisan migrate command in ECS Fargate. when I configure in docker configuration of task definition command is work but task is exit . why pls recommend How can i run ? enter image ...
ryan's user avatar
  • 1
0 votes
0 answers
27 views

How to branch traffic weight in alb's listener when there is a legacy server (EC2) and a new server (ECS-Fargate). (with ECS Blue/Green Deploy)

For the above question, create a target group on each server and set the listener weight distribution. However, when a new server uses ECS BlueGreen deployment, if there is a target group (legacy ...
김성우's user avatar
0 votes
1 answer
76 views

Hub-Spoke Architecture on AWS with Fargate with public and internal loadbalancer

Hi i have an issue where i have a hub spoke architecture as follows: The issue is i want to forward the traffic from the hub network load balancer to the internal application load balancer in the ...
DK_kbc's user avatar
  • 33
0 votes
1 answer
47 views

AWS CDK, non-obvious cyclic dependency between fargate task and rds

I am trying to understand the cyclic dependency happening in my app. It's pretty clear that cyclic dependencies can be a <-> b, or something more complex where multiple components are involved. ...
Nikola-Milovic's user avatar
0 votes
1 answer
71 views

How to install Kong on Amazon EKS with AWS Fargate and RDS ? is it possible?

I'm trying to deploy Kong, an open-source API gateway and microservices management layer, on Amazon Elastic Kubernetes Service (EKS) using AWS Fargate for container orchestration. However, I'm ...
Nasil Kp's user avatar
0 votes
0 answers
26 views

Adding new L2 Fargate service to existing L3 Fargate Service Load balancer

I have an existing service setup. 1 ECS cluster stack, 1 ECS Service stack(all resources including ALB are created in it), 1 Fargate Service stack (Default 'PublicListener' with default rule was ...
Drazer's user avatar
  • 67
0 votes
1 answer
22 views

AWS Fargate Sometimes Does not Cleanly Stop MongoDB Container

I am using the following MongoDB image in an AWS Fargate task definition: public.ecr.aws/docker/library/mongo:6.0 Sometimes when I stop the task running in the service, I get the following Mongo error ...
jtee's user avatar
  • 111
0 votes
0 answers
11 views

Running Identity Server4 on Fargate and Getting Issues with Authentication

I 'm trying to run identiyserver4 on AWS Fargate to authenicate two applications.The service is ruuning in fargate and returning details when https://{id_srv_url}/.well-known/openid-configuration. The ...
Ash's user avatar
  • 21
0 votes
1 answer
40 views

Updating ECS Container with Postgres DB. Will my db reset?

I currently have a AWS ECS service that runs a container through Fargate that has a django app and a postgres database in it. If I update this service, will my container restart to such an extent that ...
paxel's user avatar
  • 13
0 votes
1 answer
21 views

Amazon ECS Log File in Fargate

I'm migrating from ecs with ec2 to ecs with fargate and have a question In case of ecs with ec2, we emit ECS log like ecs-agent.log, evs-init.log Are these also available in Fargate? If not, container ...
iaan's user avatar
  • 13
0 votes
0 answers
17 views

AWS CDK task defintion version different from CodePipeline deployment

I've developed a script using the AWS CDK to deploy an ECS Fargate service. This script deploys the service with a default nginx image and generates Task Definition revision 1. Furthermore, the script ...
hrishikakkad's user avatar
1 vote
2 answers
67 views

AWS ECS Exec: Cannot start shell on Fargate

I've been following this tutorial: https://www.youtube.com/watch?v=wNN5N1_ZTN4 First, I've confirmed that the user I'm connecting with in AWS CLI has the following permission policy: { "Version&...
jtee's user avatar
  • 111
0 votes
1 answer
26 views

How do I authorize code running in AWS Scheduled Fargate to get secrets from AWS parameter store

I need to retrieve secrets stored in aws parameter store for use in my javascript code that is running as a Docker Container. Currently, I am using the ssmClient.getParameter function from aws-sdk to ...
Sam Turner's user avatar
1 vote
1 answer
30 views

Aws Ecs Fargate Auto Scaling Scale Down Policy

I have a Aws Ecs Service by Fargate. I made up to 100 and min 3 container running, but I have question. In scale down which container will die first as default? Can you give me some source url and how ...
EnergeticBlue's user avatar
0 votes
1 answer
56 views

how to start ecs fARGATE Task using AWS Lambda dotnet? timeout problem

I prepared a lambda function to start an ECS Fargate Task. When I debug it locally using "Mocked Lambda Test Tool" it works fine and starts it less then a minute! But when I deploy it and ...
Ali CAKIL's user avatar
  • 395
0 votes
2 answers
83 views

AWS ECS Fargate - django runserver will be billed 24/7?

I have a django app in a dockerfile, and I deployed it with ECS Fargate. It works well, but I'm am not sure about how pricing works. python manage.py runserver has to be running all the time because ...
Jhon Sanz's user avatar
  • 138
0 votes
1 answer
153 views

AWS ECS Fargate - Service Connect not updating /etc/hosts

I have two services running on ECS: service_1 and service_2. Service_2 uses service_1. Both services are on the same namespace. Service Connect service configuration on service_1 sets DNSName and port ...
rytis's user avatar
  • 2,651
0 votes
1 answer
95 views

Go gRPC client closing streams prematurely

We have three Go micro-services in AWS Fargate: "A", "B" and "C". The micro-services use gRPC for communication and in front of "B" and "C" there is a ...
Stoiko Nalbantov's user avatar
0 votes
0 answers
25 views

Understanding CPU Utilisation Graph for a task running AWS Fargate

I have a task defined with 0.5vCPU. It has two containers with 0.25vCPU Can someone explain to me what the below CPU Utilization graph represents? The above graph is from Health and Metrics section ...
tuk's user avatar
  • 6,079
1 vote
0 answers
41 views

ECS Tasks Randomly Lose Access To RDS/Redis but not Internet

So we've been battling an issue with our move to ECS from deploying directly on top of EC2, we have applications that may be deployed and running fine, but randomly one of the 4 tasks we have deployed ...
StrangeWill's user avatar
  • 2,116
0 votes
1 answer
29 views

TCP Based Service behind Network Load Balancer : How to pull Client IP?

Background I have spun up an SMTP Listener built on ECS Fargate that is listerning to incoming TCP messages behind and AWS Network Load Balancer. I am able to send messages from my local workstation ...
Lester Gray's user avatar
0 votes
1 answer
39 views

Relaunch Fargate Task Before Stop the World Garbage Collection

I have an ECS service with multiple tasks running a Java web application. We have a memory leak which causes the memory on each task to increase over time. When the memory usage gets to about 90%, ...
stackhouse's user avatar
0 votes
1 answer
42 views

Pulumi Fargate abort deploy on bad health check

I'm deploying an app to AWS Fargate using Pulumi. On healthy deploys, it's done in about 10 minutes. On unhealthy deploys, the app will report unhealthy status and fargate will restart it over and ...
Filip Haglund's user avatar
0 votes
1 answer
87 views

Execute SQL query on Redshift using AWS fargate orchestrated by Step Function

I could find many examples of invoking SQL script on Redshift using Lambda inside Step Function (ex: this works well), however I could not figured out how to execute SQL script using AWS Fargate in ...
seriously divergent's user avatar
0 votes
0 answers
44 views

why is EKS Fargate alb controller missing serving-certs/tls.crt?

I have been trying to deploy my application AWS EKS Fargate for the first time over months. I was getting lots of error but fixed step by step and I got stuck in the following error. {"level"...
Gwenda Thomas's user avatar
0 votes
2 answers
34 views

Routing Multiple A Records To AWS LoadBalancer DNS

AlB dns name : api.example.org (1) I will like to create 3 A records pointing to the ALB dns i.e api1.example.org, api2.example.org and api3.example.org (2) in my service sitting behind the ALB, I ...
stanley opara's user avatar

1
2 3 4 5
36