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 Autoscaling instance group refresh without downtime?

How is it possible to perform an instance refresh within an autoscaling group without any downtime? Running two ec2 instances with 3 public facing services running 2 tasks each. The services have an order placement strategy set to spread instanceId,…
BillPull
  • 101
  • 2
0
votes
0 answers

What are the differences between the migration options for Elastic Beanstalk Multi-container Docker environments to AL2?

We're running an Elastic Beanstalk Multi-container Docker environment on Amazon Linux 1, which has been deprecated and needs to be migrated to Amazon Linux 2. The documentation presents two options for doing so: Migration to ECS running on Amazon…
0
votes
0 answers

Why does ASG for Target Group keep adding Targets with port 80 when all I have are containers with Dynamic Mapping? (ECS running Rails app)

Current setup is a Target Group with an Auto Scaling Group providing the instances for an ELB (Application Type). This strange behavior is happening, as soon an instance is added, it has this port 80; whereas all the containers are using dynamic…
TechOcean201
  • 101
  • 2
0
votes
1 answer

Force ECS to wait for previous container to have exited before deploying new task version

I have a couple of ECS services that cannot under any circumstances run two instances of a container (embedded elasticsearch, mysql). Is there any way to force ECS to wait until the container has actually stopped (not just transitioned to…
user1933738
  • 247
  • 1
  • 6
0
votes
1 answer

ECS containers on EC2 cannot mount EFS volumes

I have created an ECS cluster backed by an EC2 auto-scaling group and launched a service in it that uses EFS for NFS storage. The service is running in awsvpc network mode so that I'm able to control traffic to and from it. There is a security group…
0
votes
1 answer

terraform: Configuring load-balancer to use dynamic port of ECS task/service in AWS

This is sort-of a general question for how dynamic port assignments are supposed to work, though my specific context is trying to figure-out if there is a natural way for a target-group to know the dynamically-assigned port of the service without…
Dustin Oprea
  • 560
  • 2
  • 8
  • 19
0
votes
0 answers

How to implement nightly ECS instances scale down and scale back up in the morning?

I've been given the task of reducing AWS costs by taking down ECS instances at night and starting them in the morning. Up until now, I found only two methods and I wonder if any of you have any experience with it. The first method is by having a…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
0 answers

AWS ECS in private subnets with autoscaling not working without NAT gateway, why?

I have stack in cloudformation, containing ECS cluster with autoscaling EC2 instances, running in private subnets. ECS is covered by ALB (in public subnets). Container instances get images from AWS ECR. I created these VPC endpoints: s3 vpc gateway…
wtdmn
  • 63
  • 1
  • 5
0
votes
1 answer

ECS/Fargate CPU peaks only to 60%

We have created an ECS/Fargate container with 2 VCPU and 4 GB RAM, running a NodeJS server in it. When we do the load testing using JMeter the VCPU reaches a maximum of 60% and flats out with the memory utilization close to 10%. Even when we…
0
votes
1 answer

ECS service is not starting tasks

Hello I am using aws ecs and terraform to deploy a few containers. I am trying to create an ecs cluster with ec2 instances and in each instance I want to run two nginx containers. I have a load balancer setup in my public subnets and I create an…
0
votes
1 answer

How to assign stable/elastic IP to AWS ECS (EC2) service , which can be whitelisted by client at their firewall

I am running service on ECS, which calls third party API. How can I have stable/elastic IP which third party can add to their firewall? EC2 to should be able to scaleup and scaledown, ECS is free to scheduler service on any of the VMs inside the…
archit
  • 1
  • 1
0
votes
1 answer

which AMI image we have to use for ECS cluster as Amazon ECS-optimized AMI is getting depricated

I saw this document which says Amazon ECS-optimized AMI is getting depricated and they are not going to maintain this any more. So if I want to create a new ECS cluster and use ec2 instad of fargte which ami image should i use for ec2 image creation…
0
votes
1 answer

Redis on AWS task

I have an API that have some heavy processing endpoints. To avoid problems, I created a queue system using redis. Now I put this API into a docker, and I'm using ECS to deploy service that creates a task that loads the docker with the API. However,…
0
votes
1 answer

How to assign internal hostnames to Fargate internal services?

I'm using CDK (via the Typescript lib) to setup my network infrastructure on ECS. There are some background workers that often report errors to a Slack channel and I'd like to assign random hostnames based on their names, something like…
0
votes
1 answer

AWS Fargate Load Balancer timing out

I'm setting up an AWS ECS/Fargate cluster/service/task with a load balancer for the first time. I believe the task is good since I can go to the task's (public) IP directly in a browser and see the application. I set up an application load balancer…