Questions tagged [amazon-ecs]

Amazon Elastic Container Service (ECS) is a highly scalable, high performance container management service that supports Docker containers and allows you to easily run distributed applications on a managed cluster of Amazon EC2 instances.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
26 views

What is best way to edit a file in terraform deployed ECS fargate container

I have a Terraform deployment for a webapp and an nginx server. I am having an issue figuring out a way to programmatically edit the nginx configuration so it will be deployed with the terraform code. ...
weteamsteve's user avatar
1 vote
1 answer
28 views

Deploying multi-containers apps to ECS

Since Docker Compose's integration for ECS and ACI is retired in November 2023, what is the best practice algorithm to deploy a docker compose application to AWS ESC? Is there the easy way to do it? ...
Alan Dzheliev's user avatar
0 votes
0 answers
13 views

auto scaling for GTM server side

I have setup GTM server side using ECS cluster and services as described here: https://aws-solutions-library-samples.github.io/advertising-marketing/using-google-tag-manager-for-server-side-website-...
x89's user avatar
  • 3,004
-1 votes
0 answers
97 views

CannotPullContainerError: pull image manifest has been retried failed to resolve ref xxxxx.dkr.ecr.us-east-1.amazonaws.com/xxx-proxy:latest: not found

After reading through docs I still cant seem to resolve this myself. The proxy image does have the tag of "dev" which ive tried to add and was thrown a seperate error saying failed to ...
im_up's user avatar
  • 1
0 votes
0 answers
28 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
32 views

ECS on Fargate scale down issues

I'm trying to create a small project for school and test ECS on Fargate and autoscaling with custom metrics. I have created an application that will push custom metrics to CloudWatch and the ScaleUP ...
user23037524's user avatar
0 votes
0 answers
18 views

CodeDeploy stuck on install step when deploying ECS service

I'm trying to deploy ECS cluster service with CodeDeploy. I have 2 containers container-1(listens 5001 port), container-2(listens 5002 port) in my ECS service(Both are the same except for the port) ...
Seiwon Park's user avatar
-2 votes
0 answers
28 views

How to set up URL for app in AWS private VPC [closed]

I deployed a simple 'hello world' Dockerized React app (with nginx) as a 'Backend Service' via AWS Copilot. The VPC, per requirements, is private and has no internet gateway or NAT gateway. I connect ...
jspru's user avatar
  • 1,086
-1 votes
0 answers
31 views

AWS CodePipeline Code Deploy - Deploy Stage - Invalid action configuration

Hi Stackoverflow community! Very happy to post my first question and thanks already at all for all the times you saved me and helped me to understand things better :) I'll try to explain my issue as ...
tuxyJo's user avatar
  • 1
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
1 answer
27 views

AWS EC2 connection between load balancer and target group with target type instance

I learn how to upload node.js server with ECS ECR. When I choose Fargate type my target group suppose to be IP address and everything work fine. When I choose EC2 type my target group suppose to be ...
mr_robot's user avatar
  • 467
0 votes
1 answer
41 views

Deploying ECS with CDK

I have been going at it now for a day and just cant get ECS to deploy using EC2, I am getting this error service prod-ecsStack-EC2Service5392EF94-71wVDsfHgsZh was unable to place a task because no ...
Ben's user avatar
  • 11
0 votes
0 answers
20 views

Failed to create a WebGL2 context - bindToCurrentThread

We’re running three.js (+ r3f, drei) on the server using puppeteer/chrome(119) on AWS ECS container with GPU (nvidia/cuda:12.2.2-base-ubuntu22.04) With these args: [“–no-sandbox”, “–ignore-gpu-...
poeticGeek's user avatar
  • 1,011
0 votes
0 answers
10 views

How to deploy a topology on Apache Storm Nimbus deployed on AWS ECS

I have succeeded deploying an Apache Storm cluster on AWS ECS after a long trial and error process. Now, I am wondering how could I deploy a topology on its Nimbus node? Should bundle the topology ...
Ben's user avatar
  • 1
0 votes
0 answers
14 views

One AWS Cloud Map, Two ECS Clusters

I have 2 ECS services, each is in a different AWS account (accounts A and B) and ECS Cluster. I have created a CloudMap namespace for services.mydomain.internal and it is in account A. I can easily ...
Ozymandias's user avatar
  • 2,551
0 votes
1 answer
12 views

Where can I see the az of my task in ecs in the MC?

The only place, where I see in which it, is in the management console in the target group, but actually I would like to see it somewhere in ecs. Where can I see that, I only found the subnet so far.
David's user avatar
  • 2,786
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
24 views

Need desperate help deploying a streamlit app using ECR + ECS on AWS. Unsure if networking issue or something else

I have to deploy a streamlit app on AWS so I am using ECR + ECS. I have tested the docker image locally and it works perfectly fine, but once I upload the image to ECR and try to deploy it on AWS ECS ...
Anas Puthawala's user avatar
0 votes
0 answers
26 views

How to run shell script from aws ECS operator

I have runcustomscript.sh inside my container (abs path: /opt/scripts/runcustomscript.sh) and I want to execute it through ECS operator: EcsRunTaskOperator( ... overrides={ "...
safa's user avatar
  • 21
0 votes
0 answers
19 views

Task failed ELB health checks in target group

I am using AWS ECS Fargate container to push a simple react image to it. The Dockerfile for this is FROM node:alpine as build WORKDIR /app COPY package*.json . RUN echo `pwd` RUN npm install COPY . . ...
Ram's user avatar
  • 187
-1 votes
0 answers
11 views

how could I gather historical TPS data for an ECS cluster?

how could I gather historical TPS data for an ECS cluster? I need to increase the number of instances in my cluster. How could I know if I have enough space to accommodate the increased desired and ...
user22993347's user avatar
0 votes
1 answer
13 views

Boto3 ECS Client filter by date

I am trying to retrieve metadata on ECS clusters that show when a cluster was created. When looking at the ECS Client Docs for boto3, I see that there isn't an option to see that information using ...
ksumo123's user avatar
0 votes
0 answers
16 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 votes
0 answers
28 views

Increase the number of instances in my cluster

I need to increase the number of instances in my cluster. How could I know if I have enough space to accommodate the increased desired and maximum count of instances? This should be done based on the ...
user22993347's user avatar
-1 votes
0 answers
29 views

Amazon ECS Service Connect for EC2 instance

To Achieve service-to-service communication in ECS EC2, i have created ECS EC2 cluster, and created 2 services and enables services connect : services connect turned on image click here has shown in ...
Manu's user avatar
  • 1
0 votes
0 answers
19 views

Connection refused with two microservices

I am getting ECONREFUSED error, it seems establish a connection with another service was refused and something is blocking the request. I am using random token and using the same token for all the ...
jay shah's user avatar
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
0 votes
1 answer
31 views

Adding a secret value to an EcsJobDefinition

I am trying to add a secret value to my ECS Job definition, secret_id = f"mysecretid" secret = secretsmanager.Secret.from_secret_name_v2( self, ...
spitfiredd's user avatar
  • 2,937
-1 votes
1 answer
39 views

Target groups in ecs

What is the use of target groups in ecs service. Basically, how do targets in a target group communicate with the ecs tasks? I explored the setup of my ecs service and target group to which it is ...
Dumb_Pegasus's user avatar
0 votes
1 answer
34 views

Service discovery on aws ECS EC2 using bridge network

we are running 8 micro services here we have client server and bfm (backed for fronted) need to talk other micro services (internally) how to configure this using bridge network because host port is ...
Manu's user avatar
  • 1
0 votes
1 answer
34 views

Running C++ program on API call in AWS

I have a C++ algorithm that I want to execute every time an API call is made to API Gateway, this algo takes a bit to run, something between 1min and 30mins, and I need to run one instance of this ...
mvkv's user avatar
  • 41
1 vote
1 answer
16 views

AWS Copilot and AWS VPN

I am using the AWS Copilot system to deploy microservices. I have encountered an issue where I need a static IP for the services deployed in ECS due to a Site-to-Site VPN. I am interested in how I can ...
Mihael Veber's user avatar
1 vote
0 answers
18 views

SignalR sends duplicate messages after redeploy to AWS

I have small SignalR project with one hub. The hub adds all users to one test group. Message handler sends messages to the same group. Locally the service works as expected. When it's deployed to AWS ...
kalinowski's user avatar
0 votes
0 answers
18 views

ECS tasks takes lot of time to deploy

This is the follow-up question to AWS load balancer not running the latest image I am now tagging my Docker image every time I make change to my app. The tag goes like 1.0.0,1.0.1 etc so that ECS ...
Ram's user avatar
  • 187
1 vote
1 answer
55 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
0 answers
27 views

Celery Task ECS Termination Issue - Need Help Updating Decorator for Handling ProtectionEnabled State Changes

Explanation: I have a Django application where I am running multiple Celery tasks on AWS Elastic Container Service (ECS), using SQS as the broker. I am encountering an issue where the Celery tasks are ...
Adrian's user avatar
  • 745
0 votes
2 answers
51 views

How to resolve: Django make migrate not running in AWS ECS from Dockerfile

I have a Django project that runs in a Docker container. Locally when I have updated the project to include changes to the model, I have run python manage.py makemigrations and python manage.py ...
ENV's user avatar
  • 906
0 votes
1 answer
32 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
1 vote
1 answer
39 views

Launch Jupyter ECS Fargate with password stored in AWS Secrets manager

I have successfully managed to run a Jupyter Lab on ECS by using Terraform. I want to protect the setup by using a password stored in AWS secrets manager. The point is that the parameter NotebookApp....
Leonardo's user avatar
  • 9,657
0 votes
2 answers
46 views

AWS Task Definition container port

I am using a simple Dockerfile that will create an image and run a simple node.js application in port 3000. This is my dockerfile. FROM node:16-alpine WORKDIR /usr/src/app COPY package*.json ./ RUN ...
Ram's user avatar
  • 187
1 vote
2 answers
56 views

How to handle large backlog of Kafka messages in a production environment, especially when your application is newly deployed?

I have a spring boot application freshly deployed on Production environment (on AWS) consuming Kafka messages on various topics which already have thousands of messages (~25K) produced prior to the ...
Jyotin Ranpura's user avatar
1 vote
1 answer
17 views

How can i target a subset of ECS tasks for stop operation?

In my architecture, a single "job" may require N "tasks". A user can start a job, allow many tasks to begin, then later cancel the job all together. When this happens, i need to ...
Pandem1c's user avatar
  • 808
0 votes
1 answer
33 views

ECS Service resource not deploying successfully

I am using cloudformation template to spin up a simple nginx web server using amazon ECS/ECR. Reference here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-...
Ram's user avatar
  • 187
2 votes
1 answer
124 views

auto scaling for ECS service

I have setup GTM server side following this guide: https://aws-solutions-library-samples.github.io/advertising-marketing/using-google-tag-manager-for-server-side-website-analytics-on-aws.html I am ...
x89's user avatar
  • 3,004
0 votes
0 answers
22 views

Most restrictive Document Policy for an S3 Gateway Endpoint to pull docker image in ECR from ECS

I am deploying an ECS Fargate cluster with a service in private subnets. To enable tasks to pull the Docker image from ECR, I have created three Endpoints (dkr, ecr API, and S3) in my VPC. Focusing on ...
Jaime Elso de Blas's user avatar
0 votes
1 answer
35 views

Update ECS service with AWS CLI avoiding CFN drift

Currently I deployed the first version of an ECS service via CFN using resolve:ssm to add a dynamic reference to the container image tag and to the task definition ARN. Then I update the service using ...
LurenzZ's user avatar
  • 23
0 votes
1 answer
33 views

Laravel application hosted on AWS ECS returns 503 error for HTTPS

I am deploying a Laravel application using AWS ECS, but I am having trouble with a 503 error occurring over HTTPS connections. Below are the current settings and issues. Environment: AWS ECS on EC2 ...
kyoshida's user avatar
  • 223
0 votes
0 answers
19 views

How to restart celery beat container or resolve KeyError(b'entries')?

My ecs fargate celery beat container is running well during some hours after deployment. But some times later, error raised like below Traceback (most recent call last): File "/usr/local/lib/...
user16613127's user avatar
0 votes
0 answers
41 views

environment variable values are not being used in the database connection

I am facing an issue with my Laravel application deployment on AWS ECS. The deployment process involves Jenkins, AWS ECR, and ECS. The new task is created, but there's an "Access Denied" ...
Spiral's user avatar
  • 1
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

1
2 3 4 5
104