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
0 votes
0 answers
6 views

AWS CDK, add UserData for ECS EC2 Tasks

I'm trying to set up an ECS service using EC2 launch type without an AutoScaling group. I'm using AWS CDK to define my infrastructure. Here's my understanding, firstly ECS already uses ASG internally, ...
Nikola-Milovic's user avatar
0 votes
0 answers
10 views

Route53 record targeting other hosted zone

Given two hosted zones: mydomain.com someapp. (Managed by ECS/Cloud Map) and given a service registered under: service1.someapp. (Managed by ECS/Cloud Map) Can you define a record like: service1....
Fabio B.'s user avatar
  • 980
0 votes
0 answers
13 views

How can I capture new relic logs from a background python process I launch in an ECS container

Here is the startup shell script for the container: #!/bin/bash # Set environment variables for newrelic if [ -z "${ENVIRONMENT}" ]; then export NEW_RELIC_APP_NAME="tf-ai-service-...
Matt Gardner's user avatar
0 votes
0 answers
6 views

Airflow Logs Not Showing in CloudWatch for ECS Deployment

Description: I'm encountering an issue with Airflow when deploying it on AWS ECS and using CloudWatch for remote logs. Specifically, for some of our DAGs, the logs are not showing up in CloudWatch. ...
sel-nef's user avatar
  • 59
0 votes
1 answer
42 views

Cakephp2 https redirects on AWS ECS

I have this old cakephp2 application that I'm deploying it to AWS ECS. However, it needs to redirect all the requests to https. I have updated the .htaccess as follows: <IfModule mod_rewrite.c> ...
gr7's user avatar
  • 492
-2 votes
0 answers
13 views

Why are the fonts not loading in the ECS? [closed]

I have my application in NextJS and I am using Node Canvas to add captions over the videos. I have installed the fonts and it is working absolutely fine in my localhost. but when I deploy it in the ...
Suraj Kadam's user avatar
0 votes
1 answer
14 views

How to pass containerOverrides to an ECS task when triggering as a target from eventbridge rule?

I want to write a python code that uses boto3 to assign targets to an eventbridge rule. The target should be an ECS task. Also when the eventbridge rule runs/triggers the ecs task it should override ...
Akshay Alok's user avatar
-3 votes
0 answers
12 views

Problem to uploading user input files to aws server in flask website

I hosted a flask website on AWS ec2 instance(ubuntu), website has functionality of working with audio files. uploading audio files to database in localhost work very easily but at production level ...
Pranav Kshirsagar's user avatar
0 votes
0 answers
13 views

Deploying AWS XRay Daemon with Nestjs application in single Docker Image [duplicate]

I have a Nestjs application for which I create a docker image and pushes it to AWS ECR. From there, it is being used by the AWS Batch Job. The Batch Job create services and task in ECS, pulls the ...
Shadab Faiz's user avatar
  • 2,380
0 votes
0 answers
8 views

AWs Batch ECS. Cannot get more than 16jobs in parallel despite quota increase

Hoping someone has experienced similar limitations/quota insights We cannot get more than 16 jobs running in our AWS batch in environment, and cannot figure out where the limit is coming from We are ...
Ben's user avatar
  • 1,292
0 votes
0 answers
30 views

AWS CDK ECS DockerImageAsset cannot Access Token

I'm sorry for asking this and for my bad English, We have code in .cdk/lib/app.ts like this who before work fine for years : const image = new DockerImageAsset(this, "Image", { ...
Dejah's user avatar
  • 1
-1 votes
0 answers
35 views

How to fix AWS Cognito Request Timeout on ECS?

Getting a timeout error when using AWS Cognito to authenticate inside a NestJS application. The problem only occurs when the application is hosted, and not locally (tested and locally works). Also, ...
Felipe S. Fernandes's user avatar
0 votes
3 answers
83 views
+100

ECS with Fargate returns 503

I am trying to start using fargate but my terraform setup seems to be wrong since the public DNS of the ALB returns 503 Service Temporarily Unavailable. The task never get started and health status is ...
user2650277's user avatar
  • 6,228
0 votes
0 answers
10 views

Different AWS CLI identity when running script via Java's Runtime.getRuntime() inside AWS ECS node that runs a Spring Boot app

I have the following setup: A docker image on which Java 17 and AWS CLI v2 are installed. The docker image also contains: A Spring Boot app A /test-identity.sh script that executes only aws sts get-...
meletis's user avatar
  • 53
1 vote
1 answer
33 views

ECS Fargate stops pulling image from ECR

ECS task are unable to start with stoppedCode as below: CannotPullContainerError: pull image manifest has been retried 5 time(s): failed to resolve ref 709686272029.dkr.ecr.us-west-2.amazonaws.com/leo-...
Encycode's user avatar
  • 552
0 votes
1 answer
26 views

Wordpress 301 redirect. From Cloudfront to LoadBalancer - AWS

Problem: When entering the example.com domain it does a 301 redirect to the LoadBalancer address (loadbalancer.xx.xx.com). The site should be served from the original domain address. My Infrastructure:...
debek's user avatar
  • 343
1 vote
1 answer
19 views

Cannot mount EFS to ECS fargate with WooCommerce Dockerfile

I have spent a lot of time trying to do this, but I have to give up. I am not able to mount AWS-EFS from AWS-ECS WooCommerce Dockerfile. It is something related to permissions, such as UID or GID. I ...
debek's user avatar
  • 343
-1 votes
0 answers
28 views

Can I use CDK to schedule an event to set the `desiredCount` of an ECS service?

For cost minimization, I often do this for development-oriented auto-scaling-group resources - by setting up an event-bridge rule to set the ASG desiredCount to 0. Is there any way to do the same ...
Shorn's user avatar
  • 19.2k
-5 votes
1 answer
19 views

setting up .pem key [closed]

Noobie AWS user and linux user here. I am looking on how to create/setup the .pem file to login into an ECS instance. I have been given the public key, finger print, private key and the key type (RSA,...
kjay's user avatar
  • 373
0 votes
0 answers
19 views

How to enable workspace files in Jenkins when running an ECS task as agent?

I have a Jenkins instance deployed on ECS Fargate which uses a docker image for its tasks/agents when jobs are built. I need to be able to see some of the files associated with the jobs in the ...
stonewalker747's user avatar
0 votes
1 answer
32 views

AWS ECS Fargate service task unable to access AWS Rekognition service - 504 Gateway Timeout

I have setup an ECS Fargate service. Task is setup with a task role. Also, I have a VPC endpoint setup for the Rekognition service. However, I am getting a 504 Gateway timeout when calling the ...
Mallikarjun Sannapyati's user avatar
0 votes
0 answers
27 views
+100

ECS DescribeTasksResponse always returns an empty `networkBindings`

I couldn't find a way to get the public IP the docs says it should be in the response: * const command = new DescribeTasksCommand(input); * const response = await client.send(command); * // { // ...
Guy Korland's user avatar
  • 9,070
1 vote
1 answer
25 views

Can't add network configuration in !If statement. "expected type: JSONObject, found: String" error

I'm trying to create a service that targets either Fargate or EC2 depending on the deployment environment (passed as a parameter). This gives me the error mentioned in the title: expected type: ...
apokryfos's user avatar
  • 38.9k
0 votes
2 answers
17 views

Will AWS ecs re-launch exited java processes in contianers?

I have a java app that I am running via Docker on AWS via the entrypoint: ENTRYPOINT ["java","-jar", "-Xmx600m", "/app.jar"] I am running this on AWS ECS. If ...
HeronAlgoSearch's user avatar
0 votes
1 answer
24 views

ECS S3 Upload Hang

const object = new PutObjectCommand({ Bucket: s3Bucket, Key: key, Body: fileData, ACL: acl, }); const { $metadata } = await this.s3.send(object) I am writing an upload ...
felixtsangDev's user avatar
-1 votes
1 answer
27 views

X-Ray setup with ECS Fargate ( .Net Core)

We have deployed our .net core application as docker image on ECS Fargate. So, want to check how we can enable AWS X-Ray tracing for our application. Do we need to setup daemon on cloud as sidecar ...
abhishek sharma's user avatar
0 votes
1 answer
34 views

Connection timeout to S3 from a python application running in ECS EC2

I have a python ECS task running via EC2 (not Fargate). In this task, I am setting up a boto3 client cls._instance.client = boto3.client( "s3", region_name="eu-west-1", ) ...
Simeon Borisov's user avatar
0 votes
1 answer
25 views

Allow ECS Fargate task access to EC2 instance using Security Group ID instead of IP

I am trying to allow an ECS task on one security group to access an EC2 instance on another security group so that I can access a mongo database hosted on the EC2 instance. Both security groups are ...
djbonez's user avatar
  • 13
0 votes
1 answer
21 views

Trying to run ECS Task using airflow scheduler

I am trying to run ECS task with the help of airflow scheduler. Just using the example template with few changes. But my task is running indefinitely when i execute DAG manually from airflow webserver ...
android2600's user avatar
0 votes
2 answers
60 views

AWS Container with static IP

I am running a ECS task in a service. I would like to use it with a public domain name, so it needs a public static IP. I have already allocated an Elastic IP, and tried many ways how to eventually ...
Michael Zelensky's user avatar
0 votes
0 answers
16 views

AWS Network Load Balancer in front of ECS service running vsftpd not working

The deployment of vsftpd as a service to ECS appears to work as expected...an FTP client can connect to the container using the Public IP listed in ECS > Clusters > Services > Tasks > ...
timborden's user avatar
  • 1,470
0 votes
1 answer
67 views

How to use separated load balancers for frontend and backend in ECS?

I have the following terraform configuration for a load balancer running in ECS AWS for my django app container deployed in ECS: resource "aws_lb" "api" { name = &...
Lucas's user avatar
  • 1,046
0 votes
0 answers
21 views

cluster vs ecs service vs task vs container

I have seen, that you can have a ecs cluster with multiple services, which can have multiple tasks in which you can run multiple containers. What is the difference between each layer? What is the ...
David's user avatar
  • 3,004
0 votes
0 answers
37 views

ECS Service Connect DNS Resolution

I am trying to get ECS Service Connect to work our services. But for some reason, just not able to get it to work. What we have in place: One service (admin) needs to get some data from another ...
GuruK's user avatar
  • 1
0 votes
0 answers
11 views

AWS springboot application endpoints not accessible

Our organisation uses AWS VPC, I have successfully deployed a springboot application into AWS ECS, it’s started fine as per logs, I have also configured Application load balancer ALB for the ...
sabarinathan u's user avatar
0 votes
1 answer
37 views

AWS Systems Manager with ECS can't reference a parameter

I am trying to load a task definition to AWS ECS. I have played around with AWS Secrets Manager and that seems to be working without any issues providing the right ARNs, however it looks like AWS ...
PeterBocan's user avatar
0 votes
0 answers
20 views

How to deploy sphinxsearch container to aws ecs?

I am trying to deploy containers to aws ecs fargate and using github actions. But I met below error on cloudwatch. WARNING: index 'stations': prealloc: failed to open /opt/sphinx/index/stations.sph: ...
simon Shim's user avatar
-2 votes
0 answers
46 views

AWS ECS task error: aws send request failed caused by: post dial tcp 209.54.181.248:443: i/o timeout

I am trying to host a simple python django application on AWS. Spent few days on documentations( they have a lot...), I am facing the following error: Task stopped at: 2023-09-08T15:32:12.579Z ...
Will's user avatar
  • 406
1 vote
1 answer
33 views

WebSockets through CloudFront + NLB to ECS Fargate (NestJS)

I have a part of my application which is designed to handle websocket connection from my React frontend using socket.io Issue I've set everything up and now I have an issue where HTTP handshake ...
mortvicious's user avatar
0 votes
1 answer
35 views

The "redirect" routing of thymeleaf is redirecting the application to http and not to https when deployed in AWS ECS

I am building a Spring Boot application which consists of Spring Security and Thymeleaf. I have deployed this application in Elastic Container Service (ECS) cluster of AWS. I have my simple controller ...
Nitin Bisht's user avatar
-1 votes
0 answers
15 views

http(backend) issue with https(frontend) in aws ec2 instance

Content: The page at 'https://joinraialy.com/user-login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://13.51.56.191:3001/api/user/user-login'. This request has been ...
vivek singh's user avatar
0 votes
1 answer
21 views

Does AWS Fargate recreate the task in another AZ in the event of AZ failure?

As the AWS Fargate tasks are spread across Availability Zones, does the Fargate recreate the task in another AZ in the event of AZ failure or do we need to have manual mechanism to overcome this ?
Ayush Agarwal's user avatar
1 vote
1 answer
34 views

Cannot send HTTP/S requests from an application deployed on AWS ECS behind an Application load balancer

I have a containerized ASP.NET MVC application running on Docker, and I'm encountering an issue when attempting to send an HTTP request from the application to an external API. Interestingly, when I ...
Guy Sne's user avatar
  • 13
0 votes
0 answers
11 views

Delete an ECS stack using Cloudformation yaml code

I have an ECS service which is created from a CloudFormation yaml code. Now, i want to delete it, so simply i removed the code block which contained the creation of this stack from the yaml. But while ...
GlidingSwords997's user avatar
0 votes
0 answers
30 views

i am not able to create wikijs service using AWS farget. Getting this error

Task stopped at: 2023-09-07T07:38:26.182Z ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call ...
Saurabh Mestry's user avatar
0 votes
0 answers
17 views

FastAPI running on ECS and facing public with ALB returns Error: socket hang up although the ALB idle timeout is large enough

I have a FastAPI app running on ECS, and the cluster faces the public with an ALB. ALB idle timeout is large enough (10 minutes), but when the server takes more than 1 minute to respond, I get the ...
Leo's user avatar
  • 867
0 votes
1 answer
18 views

How to stop creating new container before deleting old container in ECS?

I have a c5.xlarge machine (4cpu and 8gb ram) , and I have 2 applications where I have given menory_reservation as 7gb for each application's ECS task. These applications are deployed frequently and ...
Naggappan Ramukannan's user avatar
1 vote
1 answer
31 views

Unable to Connect to AWS ElastiCache Memcached from ECS Fargate Task

I have an ECS Fargate service that's trying to connect to an AWS ElastiCache Memcached cluster, but it's failing to establish the connection ECS Fargate: Running in vpc-BackendServer with security ...
Obro's user avatar
  • 11
0 votes
1 answer
53 views

How to share common code across different ECR?

Is there a way for common code to be shared across different ECR repositories, and can different ECR repositories fetch a common piece of code such that if changes are pushed to the common code, they ...
Sparsh Rawat's user avatar
0 votes
1 answer
26 views

Overriding Environmental Variables when Calling ECS task using Eventbridge

I want to use eventbridge to schedule an ECS task at a later time. My Fargate task uses an environmental variable to pass a s3 filename into the fargate instance using the environmental overrides. ...
Jesse McMullen-Crummey's user avatar

1
2 3 4 5
102