5,549 questions
1
vote
0
answers
57
views
How do I get cloudwatch agent to send jmx metrics to cloud watch in ECS
I'm needing someone who actually has this working to weigh in as I'm really struggling to get this running...
Here is my task definition in full:
Superfluous and irrelevant bits have been removed.
{
...
Advice
1
vote
5
replies
67
views
What actually is a Target Group in AWS ALB?
My app is working but I'm still confused why this works? Like why does port 80 for the target group work in this scenario? Could I have used a different port since the traffic, I'm assuming, has ...
-1
votes
2
answers
552
views
I am working on scaling a Baileys (WhatsApp Web API) Node.js server to handle 1K–5K concurrent sessions
Current Setup
Infrastructure:
Tried ECS (Fargate) with 4 tasks behind ALB with sticky sessions enabled.
Using DynamoDB for storing long-term credentials.
Using Elasticache for on-demand socket ...
-1
votes
1
answer
42
views
ECS RunTask Error: States/ECS RunTask/Arguments: The field 'TaskDefinition' is required but was missing
I defined my ECS RunTask like this, but i keep getting this error when saving: States/ECS RunTask/Arguments: The field 'TaskDefinition' is required but was missing even when my Task definition isnt ...
-1
votes
0
answers
58
views
Terraform - AWS ECS - Communication between containers in single task definition using awsvpc network (ADOT collector for prometheus )
OK so I have created a Terraform ECS cluster and In a single task definition, i have 3 containers.
Backend spring boot - which exposes actuator endpoints health, info and prometheus on port 8080
...
1
vote
1
answer
69
views
ECS Fargate Task performance worsened after re-deploying same task definition
We have an ecs service that uses Fargate tasks to connect to dynamoDB.
The application has an optimized fetch time under 100ms when querying dynamoDB tables in our testing environment.
For some R&...
0
votes
1
answer
40
views
Openmetadata deployment Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "email"
when upgrading the openmetadata version deployed on ECS from openmetadata v1.6.5 to v1.7.5. I ran into the issue Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: ...
2
votes
0
answers
74
views
NestJS gRPC server deployment issue on AWS ECS with NLB
I am trying to deploy and run a gRPC server on AWS ECS. Currently, my Nestjs gRPC server is deployed on AWS ECS. I have created a NLB to route traffic to the service using a target group. But this ...
0
votes
0
answers
38
views
Use session tags to propagate tags for resources
I'm trying to use AWS IAM Session Tags for a specific purpose. We already created an ECS Cluster and usually ECS Tasks are created for an internal purpose in our company. ECS Tasks are created by an ...
0
votes
1
answer
206
views
ECS Task in private subnet is not able to pull image from ECR, using AWS PrivateLink
I am using AWS Cloudformation to build the infrastructure, I have a vpc that have a private subnet and 2 public subnets, the private subnet has the ecs service with ecs cluster and ecs task, the alb ...
1
vote
1
answer
135
views
Do ECS services using Service Connect in the same namespace require security group rules to communicate?
I'm using AWS ECS with Fargate launch type and have two services running in the same cluster and namespace (with awsvpc mode). Both services are configured to use ECS Service Connect for service ...
0
votes
0
answers
74
views
Puppeteer launch fails with "req.on is not a function" in AWS ECS but works locally
Environment
Puppeteer: ^24.14.0
Node-RED: latest (from nodered/node-red Docker image)
Docker on Alpine Linux
Works locally in Docker, fails in AWS ECS (both Fargate and EC2)
Error
TypeError: req.on is ...
0
votes
0
answers
80
views
Celery and AWS MQ Disconnections
I set up a celery + beat containers in ECS and used AWS MQ as the broker. However, my setup seems to be very prone to disconnections, where celery workers are suddenly disconnected from MQ.
I end up ...
0
votes
0
answers
63
views
AWS ECS Fargate Tasks In Private Subnet Unreachable from ALB
Problem
I’m trying to deploy a React UI (built with Vite, served via Nginx) in Amazon ECS Fargate in a private subnet that can be reached through an internet-facing Application Load Balancer (ALB) in ...
0
votes
1
answer
243
views
AWS ECS CloudWatch and OpenTelemetry log records
I have a webservice that puts out OpenTelemetry logs, metrics and traces.
I have deployed it to ECS on AWS via the web console, and have selected the Use trace collection and Use metric collection ...
0
votes
1
answer
47
views
docker context create ecs - requires exactly one argument error
Update 2025. All the older posts are currently not working with the newer version of Docker.
I am in Windows 11 Pro (not using WSL2).
Docker Version
Client:
Version: 28.2.2
API version: ...
1
vote
1
answer
131
views
ECS Fargate Service task running but Target Group shows unhealthy and curl to localhost:8000/health fails
Problem Summary:
I’ve deployed a Django backend in ECS using EC2 launch type (not Fargate), behind an Application Load Balancer (ALB). The service runs a containerized Gunicorn server on port 8000, ...
-1
votes
1
answer
122
views
ECS EC2 Instance Not Registering with Cluster (Works Only When Launched in Public Subnet) [closed]
I'm setting up an ECS cluster using the EC2 launch type, but the EC2 instances don't register with the cluster when placed in private subnets. ASG gets created, the instance gets created but it is not ...
0
votes
0
answers
50
views
APM Trace tags show up only with "@" prefix
So, I am trying to add region tags to APM traces in Datadog. My service runs as ECS task, and the idea is to be able to filter these APM traces in Datadog by region. so I added { name = "DD_TAGS&...
0
votes
1
answer
102
views
Issue ECS deployment
I am working to get more familiar working with ECS and using github actions for the deployment, but in this moment I am facing an issue at the moment to deploy, so basically I am building a pipeline ...
0
votes
0
answers
31
views
Exec Format Error - Launching ECS Tasks with EC2 Launch Type Results in Error with Spring Boot Container
I am attempting to create an ECS Task running a container built using Spring Boot's Gradle plugin.
The stack for the ECS service is contructed using CDK. I am specifying a t4g micro instance and ARM ...
0
votes
1
answer
341
views
Fluentbit sends duplicate logs to its destination when the log file is recreated
I'm working on a task where I need to send AWS ECS EC2 logs to opensearch. For ECS service logs I've created Fluentbit daemon service which helps in sending service logs to opensearch via firehose.
...
0
votes
1
answer
75
views
Multiple logs merge into one "mega-log" in CloudWatch
I have a SpringBoot service running in ECS with the awslogs driver. It is a pretty standard REST API. For each incoming request, it produces one log with some proprietary info about the request.
...
0
votes
0
answers
29
views
Bitbucket to GitHub migration issue of an ecs long running java batch application
I migrated a java ecs batch application from BitBucket to bamboo. The application is responsible for listening SQS queues and perform a task once there is a message template in the queue. During the ...
0
votes
1
answer
118
views
Set up to send a message from account A ECS task to SQS in account B
I want to send a message from the task running ECS cluster in Account A to the SQS in account B.
Referrring different documentation to do the setup, i'm little confused as it is mentioned in few cases ...
1
vote
2
answers
157
views
C# SoA vs AoS performance
My benchmark attempts to compare AoS vs SoA for 1 000 000 items.
The result for 1 000 000 items:
| Method | Mean | Error | StdDev |
|---------------------- |---------:|-------...
0
votes
0
answers
30
views
Salesforce POST Requests Failing in Microservice in a Specific Environment
I'm doing an implementation of salesforce with an external company, and after successfully completing the testing phase, a problem has arisen in production with the microservice in the ECS service of ...
0
votes
1
answer
37
views
Can't connect to Redshift from Fargate
I have a publicly accessible Redshift cluster in two public subnets with public ips and an IGW attached. Its security group allows access on port 5439 from my own IP and from within another sg. Inside ...
0
votes
1
answer
121
views
EC2 user-data installs NVIDIA drivers successfully but ECS agent update only works when run manually
I’m launching an ECS-optimized Amazon Linux 2 instance with this user-data script. The NVIDIA driver and runtime install without error at boot, but my ECS agent update never takes effect until I SSH ...
0
votes
1
answer
86
views
AWS ECS Docker automatic environment variables injections
I will share my experience about a crazy problem on one application that I manage, that is a Laravel application publish on AWS ECS, that need to use a shared redis to store sessions and developers ...
0
votes
0
answers
175
views
gRPC Health Check for ECS Service Not Passing with grpc_health_probe in nix application
I am trying to set up a gRPC health check for my ECS services running in AWS. The health check is implemented using the grpc_health_probe tool, but my task is not passing the health check, and it is ...
0
votes
0
answers
53
views
Blazor Hosted App is not completing authentication process
I have a Blazor Hosted application that uses custom Google authentication to sign in users in an organization into the app. When I debug locally on my Windows machine, I can easily sign in using ...
1
vote
1
answer
201
views
Disable ECS Exec on a service
I am attempting to disable ECS Exec on a service, but cannot find any documentation on how to do so. Here are the commads i've tried:
aws ecs update-service --cluster <clustername> --service <...
1
vote
1
answer
190
views
How can I get an ECS container running inside localstack to connect to an S3 bucket also on the same localstack?
In my ECS container running inside localstack, I need to connect to S3 (also on same localstack) using localhost.localstack.cloud like in docs but that seem to fail?
botocore.exceptions....
1
vote
0
answers
102
views
Setting to increase GCP Pub/Sub subscription send throughput
I am trying to figure out the source of latency in my application as I am seeing a number of un-acked messages per unit time on the dashboard for my GCP Pub/Sub subscription. My application simply ...
-1
votes
1
answer
72
views
Are EC2 Instance Profile and Task Execution Role overlap in AWS ECS [closed]
Both EC2 Instance Profile and Task Execution Role are said to be used by ECS agent, then why do we need both of them? for example, the ECS agent needs a permission to "Pull down docker images ...
1
vote
1
answer
334
views
Memory leak on ECS fargate sidecar container
I have a Python application running on AWS ECS Fargate with a simple sidecar container. The sidecar is responsible for:
Receiving gRPC requests from the main application(on localhost:port)
Querying a ...
0
votes
0
answers
61
views
Harmonix (OPA) on AWS - backstage application
Working on the Harmonix implementation (Harmonix on AWS)
https://github.com/awslabs/harmonix/blob/main/README.md
From the open source code, abele deploy the required resources on AWS account but ...
0
votes
0
answers
71
views
Deploy AWS Fargate Service despite task protection
I am running an AWS Fargate Service with a Task that hasa desired count of 1. While the container is running it is polling an SQS queue for messages to process. I have set up Autoscaling depending on ...
1
vote
1
answer
190
views
How to filter for a list on WHERE clause of Cloudwatch Metrics Insights and Grafana?
Situation:
I have a cluster on ECS with many services, I want to create an alert on grafana to only fire when a certain condition is met on a certain list of services or only services that starts with ...
1
vote
0
answers
71
views
AWS ECS: runc create failed: unable to start container process: error during container init: open /proc/sys/net/ipv4/
I'm trying to implement continuous profiling for our microservices running on ECS with Amazon Linux 2 hosts, but I'm running into persistent issues when trying to run profiling agents. I've tried ...
1
vote
1
answer
62
views
CDK Setup for HTTP Integration to VPCLink ServiceConnect to ECS EC2 Service
I have a working setup with ALB instead but wanted to try and reduce costs with Cloudmap/ServiceConnect.
Essentially i want API GW -> VPCLink -> Cloudmap -> ECS Ec2 service
The current setup ...
0
votes
0
answers
52
views
Secure (SSL) React Web App with ECS Backend containers on AWS GovCloud
Ugggg, I have been trying for over a week now to get a Secure React Web app running in an ECS container.
I have 2 ECS images that I have configure to run via an ALB.
I can use the default DNS of the ...
1
vote
0
answers
51
views
Unhealthy health checks in ALB
I am exploring AWS with my own project. I am trying to secure my microservices with the use of private subnets and proper security groups configurations.
Is the following AWS design feasible?
API ...
1
vote
1
answer
115
views
"awslogs-multiline-pattern" in terraform ecs module [closed]
I'm trying add an option "awslogs-multiline-pattern" to ecs task definition on ecs module in terraform. And looks like that terraform just dont see this option. Any terraform ecs module ...
0
votes
0
answers
153
views
How to run FlyWay on ECS?
I want to run FlyWay commands that performs a database migration on an RDS instance located in a private subnet. Infrastructure needs to be set up using CDK. The Fargate service will be called from ...
0
votes
2
answers
61
views
Reading a json file from ECS location and transforming it into list of Object?
I am currently reading a json file from s3 location using the below code and then printing the data.
Json File
[
{
"name": "A",
"lastName" : "B"
},
{
...
0
votes
0
answers
130
views
Passing parameters from AWS EventBridge Pipe to ECS task read by a python application
I am totally at a loss trying to figure out a seemingly simple thing and all searches are taking me in different directions, except offering the clear solution.
I have a python application (not flask/...
0
votes
0
answers
200
views
How to share a volume between two containers running in separate ECS tasks (on different Docker hosts)?
I understand that when two Docker containers are running on the same Docker host, they can share a named volume by mounting the same volume in both containers. As mentioned in this answer, the named ...
0
votes
1
answer
93
views
ZooKeeper with ECS ServiceConnect: ConnectionLossException: KeeperErrorCode = ConnectionLoss
I have a docker compose stack that includes ZooKeeper. It has worked beautifully for years.
zoo:
container_name: zoo
image: public.ecr.aws/docker/library/zookeeper:3.9.3
restart: unless-...