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.

239 questions
3
votes
1 answer

How do I attach, format and mount a volume on boot in ecs?

I want my persistence (ebs) volume to be separate from my auto-scaling group launch configuration. So that it won't be accidentally auto deleted by terraform, or something. Also I may do something like /mnt/taskname so that I have a different…
xenoterracide
  • 1,496
  • 2
  • 13
  • 26
3
votes
3 answers

TERRAFORM how do i have 1 ecs cluster with 2 or more ecs service/task definitions?

Using Terraform, I have tried the hardest to find out how to create 1 ECS cluster and have multiple services running under it. SO basically i have 2 different containers i want to run with this 1 ECS cluster. How do i do this? I have seen many…
uberrebu
  • 503
  • 6
  • 17
  • 36
3
votes
0 answers

How can I clone a private repo in ECS docker container?

Hi I'm new to AWS ECS and I'm trying to deploy a docker cluster. I have a private github repo that I want to download to my working directory when my docker container starts, or possibly have it on some ebs volume preloaded that is then mounted by…
Dr.Knowitall
  • 219
  • 2
  • 10
3
votes
1 answer

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: Storage Read Bytes/Second However in both cases the graphs appear…
sparrowt
  • 257
  • 2
  • 7
3
votes
1 answer

Can the internal hostname be set for an ECS container on AWSVPC

I'm trying to run RabbitMQ in ECS on an AWSVPC network with EFS persistence. The problem is that ECS on AWSVPC resets the hostname every time the container is restarted. This results in rabbitmq starting an entirely new directory in…
Philip Couling
  • 1,682
  • 1
  • 19
  • 37
3
votes
1 answer

Do I need an internal Load Balancer for my ECS Services?

I have an ECS cluster with 3 services(FARGATE), the 3 services are in private subnets. 1 is the web app that is publicly accessible through an Internet-facing Load Balancer and the 2 others are only accessed from the web app. For internal…
3
votes
1 answer

How to restart a single container in AWS ECS Task Definition

In my AWS ECS Cluster, there is one service running two tasks. Each Task has 5 containers. Two of them are not essential. Among these two, one of the containers fails some times, but I am not sure how to restart the single…
Ariful Haque
  • 171
  • 1
  • 2
  • 6
3
votes
1 answer

AWS ECS CannotStartContainerError: Error response from daemon

I'm trying to start a task with a container with the following command: /bin/sh -c "export KAFKA_LISTENERS=\"PLAINTEXT://$$(hostname -i):9092\" && start-kafka.sh" But I'm getting this error when the container tries to start and I have no idea of…
ItsaMeTuni
  • 161
  • 1
  • 5
2
votes
1 answer

AWS ECS Policy: Lock down permissions to services depending on owner

I'm pretty new to AWS so please bear with me. I currently have this ecs.yaml: ... ECSSendMessageToSQSRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Statement: - Effect: Allow Principal: …
Xar
  • 123
  • 4
2
votes
2 answers

Does modifying the listener of an ELB in AWS gracefully drain connections in ECS?

My team and I are trying to come up with the best way to implement blue/green for AWS ECS but we can't seem to definitively answer one question about application load balancers. So far, the method that seems to meet our goals the most is by…
2
votes
1 answer

AWS ECS deployment Error using Cross Account

I created a jenkins job runing inside account A that connects using cross accounts IAM roles to account B, where we have a ECS cluster. I manageg to build and upload the docker images from account A jenkins to account B, but when I use: aws ecs…
Gotttlieb
  • 25
  • 5
2
votes
0 answers

How to deploy SSL certificates on Amazon Elastic Container Service?

I have a proxy server (nginx) which has the following responsibilities: proxies to different backends depending on resource requested enforces rate limiting and IP blacklisting handles rewrites and url transformations does SSL termination, has…
2
votes
1 answer

AWS: MySQL running on ECS vs RDS

I'm working on a project where we will be using ECS to run the API of each client, it will start with one but it will eventually grow. We will also need a database for each client and the Project Manager decided that we should have an instance of…
2
votes
1 answer

AWS EC2 Amazon Linux is using swap even if it shouldn't

I have a few ECS servers running various apps. After a few mysterious outages I noticed that the instance is swapping hard and it consumes its IO Burst Balance rendering the instance useless. The facts: the machines are t2 and t3 instances with 2GB…
scream314
  • 23
  • 4
2
votes
0 answers

AWS Application Load Balancer 502 Bad Gateway

I am using AWS ECS Fargate and have an application load balancer to forward all the connections to the correct instance. I did already manage to get up a cluster and a service up and running connected to an ALB which has a DNS record created in…