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
Why can't my ECS Fargate cluster write to my mounted EFS volume, all deployed with Terraform?
I've got a Terraform deployment that deploys a Docker image into ECS Fargate. It attaches an EFS volume to the container. When I SSH into the container, I see the volume mounted, but I am unable to write to it. All of the POSIX permissions seem…

CryptoFool
- 121
- 4
1
vote
2 answers
How to make my ECS Task pull my ECR image
I am trying to create a ECS task and be able to access and pull from ECR, but I am getting an error. How can I resolve this issue?
Raw error:
Cannotpullcontainererror: pull image manifest has been retried 1 time(s): failed to resolve ref…

Arthur Luiz
- 111
- 3
1
vote
0 answers
which ECS task network mode?
I have an Application Load Balancer in a private subnet (used by API Gateway) that targets an ECS task. I want that task to only be accessible from inside the VPC, not from the internet, but I do have to call 3rd party APIs, so I need outgoing…

Max
- 11
- 3
1
vote
1 answer
Why Can't I access my website ,even if 80 port of my ecs server is open?
Os system of ecs server :ubuntu.
Os of my computer:win10.
I deployed my web project to my ecs server. I could access my project online until I installed the ufw on my ecs server. I configured the firewall using ufw command and the configuration…

Abner
- 11
- 3
1
vote
2 answers
How to configure service discovery in aws ecs using the new console
In the classic AWS console it was possible to configure service discovery. It looks like this has been dropped in the new console.
How does it then need to be done in the new console?
Thanks

Jan
- 11
- 1
1
vote
1 answer
Fargate task from service with Public IP disabled can't download env file from S3
We have a Fargate service that should be exposed to the internet via a load balancer, and since for tests we had used so far the random Public IP of the task, we decided to disable the Public IP, so that it makes sense for the task of the service to…

Ncifra
- 111
- 1
1
vote
1 answer
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…

Zev
- 111
- 6
1
vote
0 answers
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 container as well as add/remove files from the EFS…

Rohini
- 55
- 4
1
vote
0 answers
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 using an elastic IP.
Trying to install and run…

GilShalit
- 149
- 7
1
vote
1 answer
(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…

prefontaine
- 11
- 1
- 3
1
vote
1 answer
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 MongoDB Atlas cluster.
Which IP should I…

Howins
- 113
- 4
1
vote
1 answer
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 instance
This means, for example, if you call the RunTask API…

Philip Couling
- 1,682
- 1
- 19
- 37
1
vote
1 answer
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 specific mapping enabled, or am I reading this…

Roger Johansson
- 131
- 4
1
vote
0 answers
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 instances in order to adopt the security…

Dustin Oprea
- 560
- 2
- 8
- 19
1
vote
1 answer
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
FROM php:8.0-cli-alpine
# Concatenated RUN…

SamDroid
- 111
- 2