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.
Questions tagged [amazon-ecs]
239 questions
2
votes
1 answer
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 read and interact with their logs?

Kurru
- 155
- 1
- 2
- 8
2
votes
0 answers
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 container recipe. The 'Base Image' section for 'Image…

marack
- 121
- 2
2
votes
0 answers
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 private ECR repo and execute a job within the…

nickewound
- 21
- 2
2
votes
3 answers
How to add a domain name to an ECS container (EC2/ECS Service) without a load balancer?
I'm searching for a way to add a domain name to an ECS service (EC2 not Fargate).
To be clear I'm looking for a solution which DNS resolves a domain name A or AAAA name (possibly CNAME if it and points to an A or AAAA). It doesn't matter to me…

Philip Couling
- 1,682
- 1
- 19
- 37
2
votes
1 answer
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:
"ResourceInitializationError: unable to pull…

user15013406
- 23
- 1
- 1
- 4
2
votes
2 answers
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 describe-clusters --clusters extraction
{
…

Dustin Oprea
- 560
- 2
- 8
- 19
2
votes
1 answer
AWS ECS task definition workflow
I've setup one of my services to be deployed to ECS (EC2). I have the service and task definition configured via terraform and then to deploy I'm using Github actions where it seems I need to define the task definition again.
It seems both are…

user2375592
- 207
- 1
- 3
- 9
2
votes
0 answers
Recommendations for high-volume request logs from containers
We have a service that uses raw AWS EC2 instances to field requests. Response times are in the 2-3 ms range. That response time is important to the health and success of the service.
Part of the services job is to send the request details elsewhere…

user607875
- 21
- 1
2
votes
2 answers
port mapping didn't happen for a container deployed on AWS ECS(uses EC2)
Context:
I am using Circle CI's aws-ecs/deploy-service-update orb to deploy my docker container by pulling the latest image in AWS ECR and deploy it in AWS ECS with AWS EC2 instance. This container is a Machine Learning model that accepts API…

Naveen Reddy Marthala
- 121
- 1
- 5
2
votes
1 answer
AWS: How do I restrict deployment to ECS clusters using IAM
I have multiple Fargate clusters in a single AWS account. I wish to ensure that a given service account (used by the build pipeline) can only update Services within a given Fargate clusters.
The IAM policy editor prompt for the ecs:UpdateService…

Alastair Irvine
- 1,182
- 11
- 24
2
votes
2 answers
Can no down time deploys be accomplished on AWS ECS with rolling update when tasks use up all the container's resources?
Currently I have a ECS cluster running a service that is running a single task per container instance, each task takes nearly all the container instance´s resources. I'm wondering if there´s some way, perhaps by setting up the Number of tasks,…

user2921909
- 21
- 2
2
votes
1 answer
Can't install certbot on an Amazon Linux 2 EC2 instance
I set up Amazon Linux AMI EC2 instance via ECS (elastic container service).
It seems like by default it doesn't have that many packages installed.
When I'm trying to install certbot using the command:
sudo yum install certbot
I get errors…

Aerodynamika
- 216
- 1
- 2
- 8
2
votes
2 answers
How to get the value of ECS_CONTAINER_METADATA_URI_V4 in AWS ECS container?
The question is pretty straightforward but a little background always could be helpful.
I need to get a container id from the container itself, and the value of it will be used as a logfile name.
According to the docs ECS_CONTAINER_METADATA_URI_V4…

kozlone
- 93
- 1
- 6
2
votes
1 answer
AWS: ECS/ALB setup, converting a docker-compose file, port mapping to mulitple containers
I know this is not an 'original question'. The general topic is covered extensively. Neverthless i'm struggling with my particular setup:
I'm trying to basically convert the following docker-compose file into an ECS based deploy in AWS.
version:…

baku
- 123
- 4
2
votes
1 answer
Does Amazon manage time synchronization on ECS/Fargate containers?
I'm trying to use NTP to synchronize local time in ECS containers using the ntpdate command, but it gives me this error:
ntpdate[770]: Can't adjust the time of day: Operation not permitted
Investigating the issue, I realized that local time is…

Aramis Rodríguez Blanco
- 21
- 1
- 3