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
0
votes
0 answers

AWS Batch CLIENT_ERROR Invalid IamInstaceProfile

Hopefully I'm posting in the correct community! I'm trying to set up a container to run on AWS Batch. I'm not doing anything fancy, more or less just following the default set-up with everything. I'm getting an error that seems to be related to the…
0
votes
1 answer

Shutdown old EC2 instances only after creating new one in when changing ECS host ami in autoscaling group

Here is my LaunchConfiguration of my AutoScalingGroup in my ECS-Cluster - using cloudformation. UpdatePolicy: AutoScalingRollingUpdate: MinInstancesInService: 1 MaxBatchSize: 1 PauseTime: PT15M WaitOnResourceSignals: true My issue…
0
votes
1 answer

What is the correct order to create a ALB for a ECS service?

I have created a number of ecs services this way, but I find that from time to time I struggle to get everything right. I want to get some feedback from the community if there is any issues with the following steps: Backgroud: The ecs cluster…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
0
votes
1 answer

ALB & Target group timeouts with unhealthy status on dynamic port

I launched a beanstalk multi container instance and its working fine. I then tried to setup dynamic port mapping and set the host port to 0. I allowed port range 32768 - 60999 for ec2 instance security group and I can access nginx using newly…
Saad Abdullah
  • 113
  • 1
  • 10
0
votes
1 answer

AWS ECS keep spawning new tasks even though the CMD should wait

It is as if the CMD has no effect. In my ECS task definition, I have defined the command as seen in the below screenshot The python process is supposed to be a 'blocking process' - it supposes to wait on data in a SQS queue. However from the cloud…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
0
votes
1 answer

Different stdout with supervisord using docker vs docker-compose

I have a service running inside docker using nginx and php-fpm. I have been beating my head against the wall to get all of the logs to redirect to stdout. The approach that I took was to use supervisord. Using docker-compose up my-app everything…
aberg
  • 11
  • 1
  • 5
0
votes
1 answer

Can I create a hard dependency between two ECS clusters?

We have a service that uses two services, a custom java application and a custom kafka build. When releasing a new version of our service, we always tag and push kafka to it's repo and the app to it's repo, with the same version tag. These are part…
MrDuk
  • 865
  • 2
  • 10
  • 18
0
votes
1 answer

AWS Elastic Beanstalk CPU Capped

We're running a multi container Docker setup on AWS Elastic beanstalk. We're in the process of load testing, and noticed that no matter what the load was, CPU% maxed out at 50%. The instance size has 2 cores, so it should be able to use…
0
votes
1 answer

How to create a private staging environment on AWS?

My small company is developing a webapp on AWS, using VPC and EC2 Container Service, with Application Load Balancers directing traffic to our apps. I have the environment up and running, but I want to secure it so that only people in our company can…
David Ham
  • 111
  • 3
0
votes
1 answer

Can I use AWS SNS to communicate between ECS Tasks?

I have an ECS Cluster which can scale some tasks in a service based on the load. I also have a scheduled audit ECS task which run periodically and wants to send a notification to these other tasks in the service so they can update their data…
Gary
  • 103
  • 1
  • 2
0
votes
0 answers

Commands in Dockerfile of a base image is not being run

I ran out of methods already, this is rather confusing. So, I have a docker container where I would like to "git clone" my php web application, and then run "composer install". From my understand, dockerfiles are best to keep them as flexible and…
Thomas Cheng
  • 101
  • 1
0
votes
1 answer

Amazon ECS - add --shm-size to Docker run

I need to add the shm-size option to the docker run command for the containers run in my cluster on ECS. I cannot see any documented or obvious way to do that in ECS console. Is it possible?
robzolkos
  • 101
  • 2
0
votes
0 answers

Can I create an AWS ECS cluster that uses a custom VPC?

So after much time trying to get an AWS ECS cluster to recognize my instances, I realized it was the because the cluster was in the default cluster for the account while the instances were in a custom VPC. I am able to get my instances registered…
0
votes
0 answers

ELB Instances are removed on failed healthchecks

I'm running an ECS cluster with 4 ELB's. I have the annoying problem that my ELB's remove instances upon healtcheck failure. When my cluster rescale a task, it could be running on another instance so the instances need to be registered with the ELB,…
Knots
  • 101
  • 1
0
votes
1 answer

In terraform, howto attach a backing ec2 instance to an ecs service

I’m using Terraform to upload a web to AWS. This ECS, with a docker image, that errors with 500 when I try to go to it’s assigned A-record DNS name. For this service, I’ve assigned a few AWS resources: AWS role AWS policy AWS elastic load balancer…
Frye
  • 253
  • 2
  • 3
  • 11