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 distributed applications on a managed cluster of Amazon EC2 instances.

Amazon ECS eliminates the need for you to install, operate, and scale your own cluster management infrastructure. With simple API calls, you can launch and stop container-enabled applications, query the complete state of your cluster, and access many familiar features like security groups, Elastic Load Balancing, EBS volumes, and IAM roles. You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs and availability requirements. You can also integrate your own scheduler or third-party schedulers to meet business or application specific requirements.

There is no additional charge for Amazon EC2 Container Service. You pay for AWS resources (e.g. EC2 instances or EBS volumes) you create to store and run your application.

Infrastructure Integration

Amazon EC2 can facilitate the dynamic spin up of server clusters while Kubernetes can be used as the container orchestration management layer which works well since these two tooling stacks are largely orthogonal.

Benefits

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

For more details click here

5065 questions
54
votes
8 answers

Cloudformation template for creating ECS service stuck in CREATE_IN_PROGRESS

I am creating an AWS ECS service using Cloudformation. Everything seems to complete successfully, I can see the instance being attached to the load-balancer, the load-balancer is declaring the instance as being healthy, and if I hit the…
Anvar
  • 1,110
  • 2
  • 10
  • 22
53
votes
4 answers

Fargate vs Lambda, when to use which?

I'm pretty new to the whole Serverless landscape, and am trying to wrap my head around when to use Fargate vs Lambda. I am aware that Fargate is a serverless subset of ECS, and Lambda is serverless as well but driven by events. But I'd like to be…
janDro
  • 1,426
  • 2
  • 11
  • 24
52
votes
7 answers

'exec user process caused: exec format error' in AWS Fargate Service

I am totally new to AWS but I've been running my dockerized application locally for months now with no issues. Now that I am trying to deploy this app via AWS ECS/Fargate, my containers are stopped repeatedly with this linux error:…
50
votes
8 answers

AWS Fargate ResourceInitializationError: unable to pull secrets or registry auth: pull command failed: : signal: killed

Slightly tearing my hair out with this one... I am trying to run a Docker image on Fargate in a VPC in a Public subnet. When I run this as a Task I get: ResourceInitializationError: unable to pull secrets or registry auth: pull command failed: :…
user2800708
  • 1,890
  • 2
  • 18
  • 31
49
votes
8 answers

How to change instance type in AWS ECS cluster?

I have a cluster in AWS EC2 Container Service. When I've set it up, I used t2.micro instances because those were sufficient for development. Now I'd like to use more powerful instances, like m4.large. I would like to know whether it is possible to…
vargen_
  • 2,590
  • 3
  • 24
  • 30
47
votes
9 answers

Cloudwatch failedinvocation error no logs available

I have set up a Cloudwatch rule event where an ECS task definition is started when a previous task definition is completed. I can see the event triggers the task definition however it fails. The only visibility of this failure is in the rule…
47
votes
4 answers

AWS ECS Task Memory Hard and Soft Limits

I'm confused about the purpose of having both hard and soft memory limits for ECS task definitions. IIRC the soft limit is how much memory the scheduler reserves on an instance for the task to run, and the hard limit is how much memory a container…
maambmb
  • 881
  • 1
  • 8
  • 18
44
votes
7 answers

AWS ECS restart Service with the same task definition and image with no downtime

I am trying to restart an AWS service (basically stop and start all tasks within the service) without making any changes to the task definition. The reason for this is because the image has the latest tag attached with every build. I have tried…
John Kariuki
  • 4,966
  • 5
  • 21
  • 30
44
votes
3 answers

AWS Docker deployment

I have a custom docker image uploaded to ECS. I opened up the permissions to try and get through this issue (I will lock it down again once I can get this to work). I am attempting to deploy the docker image to elastic beanstalk. I have a docker…
44
votes
5 answers

Getting console output from a Docker container

I build an image with Python installed and a Python application too. My Python application is a Hello, World! application, just printing "Hello, World!" on the screen. Dockerfile: FROM python:2-onbuild CMD ["python", "./helloworld.py"] In the…
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
43
votes
4 answers

How can I connect my autoscaling group to my ecs cluster?

In all tutorials for ECS you need to create a cluster and after that an autoscaling group, that will spawn instances. Somehow in all these tutorials the instances magically show up in the cluster, but noone gives a hint what's connecting the…
cari
  • 2,251
  • 2
  • 18
  • 27
41
votes
1 answer

What is the minimum healthy percent and maximum percent in Amazon ECS

I already have the experience in Docker and EC2. But I'm new to ECS. Can someone help me to understand what these two parameters actually does, their difference and usage. Official Docs says: The minimum healthy percent represents a lower limit on…
sithumc
  • 3,254
  • 8
  • 27
  • 46
40
votes
4 answers

Essential container in task exited

I am trying to configure my docker hub image with aws ecs..I have created repository, cluster, and task while running task am getting an error as an essential container in task exited 1. while trying to get exact error details I have found that some…
36
votes
1 answer

Terraform Fargate task definition requesting execution role

I'm using Terraform to create a few services in AWS. One of those services is an ECS task definition. I followed the docs and I keep getting the following error: aws_ecs_task_definition.github-backup: ClientException: Fargate requires task…
davidb
  • 1,503
  • 4
  • 30
  • 49
36
votes
2 answers

No Fargate configuration exists for given values for Jenkins amazon-ecs-plugin

I am trying to use recently released amazon-ecs-plugin:1.15 which support fargate but I am getting below error. WARNING: Slave {0} - Cannot create ECS Task May 24, 2018 1:10:39 PM hudson.slaves.NodeProvisioner$2 run WARNING: Unexpected exception…
Sourabh
  • 709
  • 1
  • 8
  • 9