Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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 applications on a managed cluster of Amazon EC2 instances.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to run a Fargate task? My cluster seems to be invisible

I don't know what details to provide here, so bear with me. I want to use AWS Fargate. I successfully uploaded my docker image, created a Task Definition, and created an EKS cluster, but when I ...
user avatar
  • 101
0 votes
1 answer
16 views

How to assign internal hostnames to Fargate internal services?

I'm using CDK (via the Typescript lib) to setup my network infrastructure on ECS. There are some background workers that often report errors to a Slack channel and I'd like to assign random hostnames ...
user avatar
0 votes
0 answers
7 views

AWS Patch Manager and ECS Cluster Spot Instances

I have a ECS Cluster with a capacity provider providing me with spot instances to run docker tasks. I have Patch Manager set up and can run patches manually / on a schedule. However, I would like for ...
user avatar
0 votes
1 answer
23 views

AWS ECS Task is stuck at PROVISIONING

I have an ECS Cluster with a capacity provider and a service. The capacity provider runs an autoscale group, and when one instance of this group starts, at the end I can see that there are ECS ...
user avatar
0 votes
1 answer
21 views

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 ...
user avatar
  • 113
0 votes
0 answers
66 views

Creating Amazon ECS service with multiple load balancer target groups with dynamic ports

So I was using fargate for some containers that were using http and websockets. For this to work I created a target group for each port and added their respective load balancer listener to each ...
user avatar
0 votes
0 answers
37 views

figuring out why a docker container becomes unresponsive

I'm using AWS Elastic Container Services to start and stop Docker containers as demand dictates. The problem is that occasionally, in the middle of the day, a subset of employees just lose the ability ...
user avatar
  • 275
0 votes
0 answers
83 views

SQS is not working for multiple ECS (fargate) instances

I am using an application load balancer, under this ALB, a target group is provided. In this target group, two fargate ECS instances are running. These two instances use the same PHP docker image. ...
user avatar
  • 37
0 votes
0 answers
13 views

Why is ECS triggering an immediate in-process application recycle?

I have an ASP.NET web app (.NET Framework 4.7.2.) deployed to AWS/ECS and we noticed Application_Start was running not once, not twice, but three times! Maybe others are facing this problem. We ...
user avatar
  • 3,398
1 vote
1 answer
127 views

ECS restarts due to health_check failure when multiple other requests are slow to return

We noticed that our ECS Fargate backend services restart due to a health check response timeout: (service our-site-com-stack-BackendApiServiceStack...) (port 8000) is unhealthy in (target-group arn:...
user avatar
  • 111
2 votes
1 answer
116 views

Are the units incorrect for Storage Read / Write graphs in AWS ECS Container Insights?

In AWS Console > CloudWatch > Container Insights > Performance monitoring > ECS Tasks, the graphs for both Storage Read and Storage Write have units shown as Bytes/Second like this: ...
user avatar
  • 235
0 votes
0 answers
52 views

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 ...
user avatar
0 votes
1 answer
212 views

AWS Route 53 pricing for hosted zones and domain names

Novice dealing with DNS services here. I'm setting up an ECS cluster of Fargate containers that need to communicate with each other. They are deployed as separate services in the same cluster, so I ...
user avatar
1 vote
0 answers
87 views

Mounting EC2 directory with existing data to Fargate container using EFS

I have an EC2 instance with a huge directory(ex. /large-dir) that containers need to access. Both instance and container share same network and security group. I'm able create and mount an EFS to ...
user avatar
  • 23
0 votes
0 answers
144 views

How to get live logs sent from ECS to AWS cloudwatch

I run containers in ECS on python docker image which has ssh installed because sometimes I need to login to the container. Whatever logs are outputted using print in the python script show up in the ...
user avatar
  • 23
2 votes
1 answer
33 views

How to view and interact with terminal logs generated by AWS ECS

How do people view and interact with terminal logs generated by AWS ECS? I've been using the ECS task view so far, but I feel the UX is bad and the Cloudwatch UI has similar problems. How do others ...
user avatar
  • 125
0 votes
1 answer
145 views

How does memory and memoryReservation work for Tasks running on EC2 ECS?

EC2 ECS lets you specify memory and memoryReservation for both ECS tasks and the containers running within those tasks. I understand that memory and memoryReservation on the container settings map to ...
user avatar
0 votes
0 answers
204 views

Best practice for deploying multi region ECS

If I want to deploy to multiple regions on Amazon ECS, would I be able to do a Blue/Green deployment from one region to all? I can't find any indication on how to achieve this without having a Blue/...
user avatar
  • 1
0 votes
0 answers
82 views

Running certbot on an ECS instance

I am trying to run certbot on an ECS instance which is running a docker image (docker.io/existdb/teipublisher). The image runs well and I have associated it with a custom subdomain teipub.dh-dev.com ...
user avatar
  • 109
0 votes
1 answer
60 views

aws - ECS capacity provider permission

I'm trying out teraform for managing my infrastructure and got into a bit of an issue and I'm not sure what to look for. I'm attempting to create a capacity provider for my ECS cluster however I'm ...
user avatar
0 votes
1 answer
600 views

(ServiceNotFoundException) when calling the UpdateService operation through CircleCI

As stated, running this through the aws-ecs orb for circleci. Error An error occurred (ServiceNotFoundException) when calling the UpdateService operation: I've already looked at https://discuss....
user avatar
0 votes
1 answer
267 views

How to get a static IP address for outbound requests in AWS?

We are in an integration process and the company is asking for whitelisted static IP addresses. The suggested solution by AWS is to create new ECS that uses new subnets. Is it possible to change ...
user avatar
1 vote
1 answer
358 views

How to authorize only IP from a Fargate ECS service for MongoDB Atlas Cluster

I have an ECS Fargate service mapped to an Application Load Balancer on AWS. In this service, there are several task that are frequently killed and restart. These tasks should be able to connect to a ...
user avatar
  • 113
2 votes
0 answers
95 views

Why can't I use AWS EC2 ImageBuilder to create a RHEL based container?

In the AWS console for EC2 ImageBuilder the option to create a Container Recipe using RHEL as the base image seems to be disabled. From EC2 Image Builder console -> Container Recipes -> Create ...
user avatar
  • 121
0 votes
0 answers
134 views

Implications of CPU limit on a docker run Java (tomcat) application?

I have had an ongoing problem running a Tomcat java web application in a docker container (which I refer to as a 'task' in this post) hosted in an ECS (elastic container service) on AWS. We notice ...
user avatar
  • 11
0 votes
0 answers
374 views

AWS ECS task definition revision date and time

I want to know when task definition revisions have been made. When I run this command aws ecs describe-task-definition --region us-east-1 --task-definition my_task_definition it gives me the latest ...
user avatar
0 votes
1 answer
553 views

Intermittent 500 Error caused by psycopg2.OperationalError: could not translate host name

20% of requests to our backend Django application (deployed on AWS using ECS and Postgres RDS) are throwing 500 errors. Looking at the ECS logs, various related errors are shown: psycopg2....
user avatar
  • 111
2 votes
0 answers
531 views

CredentialRetrievalError within ECS container

Problem I have deployed an ECS cluster and am running a job orchestration platform on the cluster. One of the containers of this platform uses the python docker api to pull a container from our ...
user avatar
0 votes
1 answer
288 views

Flink taskmanager on ECS cannot connect to jobmanager on EC2

I have an EC2 instance which is in us-east-1b and is running the flink jobmanager, which is responsible for coordinating work across multiple taskmanagers via RPC, and history server. I can see from ...
user avatar
  • 113
0 votes
1 answer
1k views

How to add a domain name to an ECS container (ECS Service) without a load balancer?

I'm searching for a way to add a domain name to an ECS service (containers) without a load balancer. The particular type of service I want to do this for is itself a load balancer with capabilities ...
user avatar
0 votes
0 answers
39 views

AWS ECS: RegisterTaskDefinition result with new revision ends with unexpected changes

I'm trying to register a new task on AWS ECS using the API My initial task revision looks like this: initial revision created on ECS UI I want to call RegisterTaskDefinition to change the task size ...
user avatar
0 votes
1 answer
133 views

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 ...
user avatar
  • 23
0 votes
0 answers
170 views

Is amazon/amazon-ecs-pause needed by the ECS host

I have an EC2 that is registered to ECS cluster. Initially it had these two images. amazon/amazon-ecs-agent latest ...
user avatar
  • 23
0 votes
1 answer
331 views

Does bridge networking mode in ECS limit number of tasks on container instance

I have an EC2 registered to ECS cluster on which tasks can run. Originally I chose the awsvpc network mode so every task(container) had it's own ENI(IP). But I ran into limitation at https://docs.aws....
user avatar
  • 23
0 votes
0 answers
15 views

ECS Deployment Synchronisation

We have an issue where we have two separate task definitions which need to be deployed together. We need to split the task definitions since the number of containers for this service is more than 10. ...
user avatar
  • 1
0 votes
1 answer
380 views

Terraform ECS Capacity Provider not resulting in new ECS instances on demand

From what I read here ECS capacity providers should (generally) prevent tasks immediately failing on resource limits by putting them in a "Provisioning" state and spinning up a new EC2 ...
user avatar
0 votes
0 answers
48 views

Setting AWS ECS permissions to restrict docker-pull to certain tags

I have desperately looked for documentation, examples, and posts that hint at a way to restrict certain policies to certain Docker image tags, but haven't been able to find a single example or even a ...
user avatar
0 votes
1 answer
144 views

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....
user avatar
  • 139
1 vote
1 answer
570 views

AWS ECS Fargate, container to container communication

I'm having trouble exposing ports on my ECS Fargate containers. I have applied port mapping on container level for my task definition, like so: On the containers themselves, it looks like there is no ...
user avatar
0 votes
0 answers
64 views

How to configure Mongo Atlas cluster to be accessible only from AWS ECS?

I have a NodeJS application which runs as a container on AWS ECS inside its VPC. For the database I have a cluster on Mongo Atlas. How can I configure Mongo Atlas so that the database is only ...
user avatar
0 votes
1 answer
143 views

Can containers be placed on EC2 host in overloaded fashion in AWS ECS

I have an instance with multiple tomcat applications and standalone jars running. If the machine has 2vcpu and 8GB RAM the individual applications can use use the resources on demand(based on the Xms ...
user avatar
  • 13
0 votes
1 answer
143 views

How to minimize ecs autoscaling reaction time from terraform?

When you create an ECS autoscaling policy, two alarms tag along with it: one for scaling up ("out"), one for scaling down ("in"). The scale-out ones I see created appear to sample ...
user avatar
2 votes
1 answer
11k views

AWS ECS Fargate Task cannot pull secrets from SSM

I'm bootstrapping an ECS Cluster with AWS CDK. I created SecureStrings in SSM which I want to pass to the container secrets. But when starting the service I get the following error message on the task:...
user avatar
0 votes
1 answer
97 views

Automatic task retirement in ECS services

Is there any to automatically refresh the tasks of a service on a schedule (every day, every week, etc..)? Semi-officially, it seems like there may not be (and maybe it's just up to the individual ...
user avatar
1 vote
0 answers
167 views

How to change the instance count of an ECS EC2-moded cluster?

When you create a cluster, you declare an instance count and that number of EC2 instances are created. When you even tweak the entries in the associated security-group, ECS will re-fill all of its ...
user avatar
1 vote
2 answers
1k views

How to get the security-group for an ECS cluster

When creating an EC2-mode ECS cluster, you must assign/create a security group: However, there appears to be no way to retrieve the ARN/name of the security group afterward. UI: CLI: $ aws ecs ...
user avatar
0 votes
1 answer
104 views

ECS Cluster Service not Running Containers

Recently I created an ECS cluster. I used the wizard on the AWS console to create it using an existing VPC, subnets, keypair and a previously created IAM role (from another cluster creation operation)....
user avatar
0 votes
1 answer
876 views

Dockerized Laravel application with volume on AWS Fargate issue

this is my scenario, I have a Laravel 8 application that I'm trying to deploy using AWS ECS through AWS Fargate. This is the useful part of my dockerfile: ### ... Previous composer and npm stages ...
user avatar
  • 101
0 votes
1 answer
990 views

How to reference container hostname or ip from another container in the same ECS task in cloud formation

I'm trying to setup an AWS ECS cluster which has a single task that has 3 separate containers for prometheus, promscale, and prometheus-ecs-discovery. I'm trying to figure out how to dynamically set ...
user avatar
  • 217
0 votes
0 answers
84 views

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 ...
user avatar
  • 123

1
2 3 4 5