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
1
vote
0 answers
should I do task definition for nginx and nodejs seperate or together?
I want to up four nodejs containers and one nginx container on my ec2 with ecs.
So I know that I need to create task definition for nodejs image, and service to run this task.
In the service I set number of tasks to 4. so now in my ec2 I run four…

Jon Sud
- 111
- 1
1
vote
2 answers
Create / Destroy EC2 instances for ECS tasks
I have various Fargate tasks. They work fine. I then have a few additional tasks that require more disc space than silly old Fargate will allow. These have to run on EC2 instances that I have assigned to their respective cluster.
I trigger these…

Ben Smith
- 157
- 5
1
vote
1 answer
Production-ready Node/React app - memory utilization issues
I have an app that is deployed on AWS using ECS and recently facing some issues with memory utilization.
To give you a little background:
Our app is Node.js (specifically Sails.js) backend with React used for front-end
In the ECS task definition,…

Aaron
- 183
- 3
- 12
1
vote
2 answers
Is it possible to scale up an AWS ECS cluster when a Scheduled Task runs?
I have an AWS ECS cluster whose only purpose is to run a scheduled task every 12 hours. Currently, I leave the cluster scaled to 1 instance so the task has somewhere to run. I would instead like to leave the cluster at 0 instances and configure it…

jth
- 111
- 2
1
vote
0 answers
Amazon ECS Batch job failing after six hours
We have an AWS Batch system that processes geospatial imagery out of one S3 bucket and into another. It has an instance policy allowing it to access the buckets. The system kicks off quite a few parallel tasks, and most run only for a few minutes or…

kauer
- 46
- 3
1
vote
2 answers
AWS ECS Continuous Deployment issue with CodePipeline
While deploying ECS using codepipeline like specified in aws official document, two docker image is pushing into ECR. One image contain both Commit id and latest tag and other image is untagged like specified below image.
In "buildspec.yml" file i…

Sreeraju V
- 501
- 4
- 17
1
vote
1 answer
Docker labels for ECS containers
I'm new to using labels with Docker containers, but I noticed that the labels I add to my images during build are ignored by ECS when I deploy a task definition.
I can see that I can add the labels to the container as part of the task definition,…

mhvelplund
- 97
- 2
- 12
1
vote
0 answers
ECS task definition versioning
We have two clusters for deploying ECS tasks - staging and production. When registering new task definition, in container definition we set ENVIRONMENT variable (can be "PRODUCTION" or "STAGING"). This creates duplicate task definitions with just…

arnaslu
- 137
- 1
- 4
1
vote
2 answers
Single container jobs on AWS
We would like to launch single Docker container tasks in a versioned and logged - but ad-hoc fashion on AWS. Each container task requires significant vCPU and RAM (maybe 16 vCPU and 64GB RAM).
I can see several services that might help with this,…

danodonovan
- 203
- 2
- 5
1
vote
2 answers
Redirect ephemeral port to 80
I am starting in AWS and server management in general and just set up a deployment pipeline with ECS and some containers.
My container :
My host port is 0 and redirected to container port 4200 (Angular default port)
Is behind an Application Load…

phadaphunk
- 63
- 5
1
vote
1 answer
How do you tag EC2 instances spawned by ECS in Terraform?
I have an ECS service that spawns some containers:
resource "aws_ecs_service" "rocketchat" {
name = "rocketchat-ecs-service"
cluster = "${aws_ecs_cluster.rocketchat.id}"
task_definition =…

edzillion
- 139
- 1
- 9
1
vote
0 answers
The idiomatic approach to mounting "configuration" volumes on ECS?
I have a docker container that I would like to "port" to ECS. My Dockerfile contains a VOLUME instruction:
VOLUME /app/configuration
So using docker on a linux machine, you just point to the folder you would like to associate the VOLUME to either…

Shiraaz.M
- 111
- 1
1
vote
0 answers
In ECS, how to mount container's user home and host's user home?
In ECS, how can I mount volumes the container's userhome and host's user home?
"containerDefinitions": [
{
"name": "web",
"image": "nginx",
"cpu": 99,
"memory": 100,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
],
"essential":…

richersoon
- 111
- 1
1
vote
1 answer
Why does creating a service in AWS ECS require the ecs:CreateService permission on all resources?
I'm trying to create a service on AWS ECS, using CloudFormation. The user trying to create service has a role granting it the ecs:CreateService permission on the cluster that will host the service. However, the service fails to create with this…

DylanSp
- 83
- 1
- 8
1
vote
0 answers
AWS - ECS with ELB not working, instance IP works though
I've set up an ECS cluster with a single container, with an ELB to serve the traffic to it. The ELB listener is HTTPS/443, and the host listener is HTTP/8080. I.e. when you hit the URL it's HTTPS but the communication between the instance and the…

user1840352
- 11
- 2