Questions tagged [aws-ecs]

Use this tag for questions related to Amazon Elastic Container Services (ECS), which is a highly scalable, high-performance container orchestration service that supports Docker containers and allows you to run and scale containerized applications on AWS.

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, high-performance container orchestration service that supports Docker containers and allows you to easily run and scale containerized applications on AWS.

Amazon ECS eliminates the need for you to install and operate your own container orchestration software, manage and scale a cluster of virtual machines, or schedule containers on those virtual machines.

Infrastructure Integration Amazon ECS makes it easy to build performant, modern applications on AWS and features AWS Fargate so you can deploy and manage containers without having to provision or manage any servers.  Amazon ECS is deeply integrated with key AWS services including Elastic Load Balancing, Amazon VPC, AWS IAM, Amazon ECR, AWS Batch, Amazon CloudWatch, AWS CloudFormation, AWS CodeBuild, AWS CodePipeline, AWS CloudTrail, and Route 53 AutoNaming for Service Discovery.

Benefits Cluster Management Made Easy Flexible Scheduling Performance at Scale Security Extensible

90 questions
3
votes
7 answers

How to expose APIs endpoints from private AWS ALB

We are having several microservices on AWS ECS. We have single ALB which has different target group for different microservices. We want to expose some endpoints externally while some endpoints just for internal communication. The problem is that…
Rahul Garg
  • 4,069
  • 1
  • 34
  • 31
3
votes
1 answer

Updating ECS service with Terraform fails to place a new task

After pushing a new image of my container I use Terraform apply to update the task definition. This seems to work fine but in the ECS service list of tasks I can see the task as inactive and I have an event: service blahblah was unable to place a…
Jonesie
  • 6,997
  • 10
  • 48
  • 66
3
votes
2 answers

Alternative to mounting /dev/shm volume in Selenium Grid AWS Fargate setup

Because AWS Fargate is stateless and does not currently support any sort of persistence (that I know of or was able to find), I am running into an issue with my Selenium Grid setup. When I had the grid running in Docker, I did what most people seem…
Mike B.
  • 65
  • 11
2
votes
1 answer

AWS ECS: LoadBalancers property error in ECSService CloudFormation resource definition

Trying to create an ECS Service using the following Cloudformation resource definition: MyUIService: Type: AWS::ECS::Service Properties: Cluster: !ImportValue MyClusterName DesiredCount: 1 LaunchType: EC2 …
pkaramol
  • 16,451
  • 43
  • 149
  • 324
2
votes
1 answer

Does every aws batch job spin up a new docker container

Every time I submit a batch job, does a new Docker container get created or the old container will be reused. If a new Docker container is created every time, what happens to the container when the job is done. In AWS ECS,…
Harry Su
  • 169
  • 4
  • 11
2
votes
1 answer

Ensure ECS only kills old tasks when new ones are ready

We have Docker-based ECS services where once the process is up, it needs to synchronize application state before it is ready to start serving requests. This can take some time (a number of seconds after the process starts). When using ECS Services,…
Rex M
  • 142,167
  • 33
  • 283
  • 313
2
votes
3 answers

How to run Docker inspect to obtain image meta-data of an image in the ECR registry

I have the relevant access to the ECR registry however i am not able to get image meta data by running the Docker inspect command. I am trying with docker inspect ecrregistryurl/dockerimage:imageversion
maltamash
  • 77
  • 1
  • 5
2
votes
1 answer

How is a batch processing system in AWS ECS different from AWS Batch?

I have a batch processing system which runs for 5 hours daily on a fixed time. With AWS Batch, I could schedule the job which creates the required EC2 instances to do the job and terminate back the instances.But with ECS, can i launch and terminate…
TheDominus
  • 179
  • 3
  • 11
2
votes
1 answer

Run docker container with volume argument in AWS ECS as Task definition or Service

I am using nginx-proxy docker image to proxying my other web application. I can run this image using docker run -d -p 80:80 -e ENABLE_IPV6=true -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy command. Here -v option is mandatory if…
Nitin
  • 2,701
  • 2
  • 30
  • 60
2
votes
0 answers

Auto Scaling Group Reattach Volume

I have an ECS cluster running one docker container which I want to run for only several hours per day. When the instance does not need to be used I want it to be stopped but I found that I can't stop an instance in ASG because it will get terminated…
Mugetsu
  • 1,739
  • 2
  • 20
  • 41
2
votes
0 answers

Does AWS ECS internally maintain tasks queue

We are in the development phase. So we are using AWS ECS cluster consisting of 2 EC2 instances. We are submitting tasks to ECS cluster using ECSOperator of Airflow. We are looking to scale this process. So we are going to use Celeryexecutor of…
Free Coder
  • 459
  • 4
  • 19
2
votes
1 answer

How to push docker image into aws ecr using golang sdk

I am trying to write a tool to automatically push docker image into aws ECR. I am trying to push a docker image into aws ECR using aws golang sdk. was trying to follow this documentation…
Know Nothing
  • 1,121
  • 2
  • 10
  • 21
1
vote
2 answers

AWS ECS: Severe bug in ECS Service Cloudformation template

Trying to create an ECS service using cloudformation via the following manifest that has the appropriate imports UIService: Type: AWS::ECS::Service Properties: Cluster: !ImportValue ECSClusterName DesiredCount:…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
1
vote
1 answer

ECS Auto Scaling - Unable to scale out on CPU Reservation metric

I have the below Auto Scaling Policy which should add instance when the CPU reservation goes beyond 75%. I am not seeing any Alarm triggered for this setup Policy type: Simple scaling Execute policy when: ECS-CPUHighAlarm breaches the alarm…
John Williams
  • 51
  • 1
  • 6
1
vote
2 answers

How to scale tasks / containers in AWS ECS

This is an introductory guide by AWS on how to deploy microservices - based applications on ECS Apparently (as also becomes evident from the documentation), a so called task definition should encompass all of your containers that make up you…
pkaramol
  • 16,451
  • 43
  • 149
  • 324