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
22
votes
3 answers

What is the optimal way to run a Node API in Docker on Amazon ECS?

With the advent of docker and scheduling & orchestration services like Amazon's ECS, I'm trying to determine the optimal way to deploy my Node API. With Docker and ECS aside, I've wanted to take advantage of the Node cluster library to gracefully…
21
votes
2 answers

AWS Elastic Beanstalk Docker Does not support Multi-Stage Build

I am struggling to get my build deploying to AWS on Docker. I have no idea where the solution lays as this is my first time with Docker. I have got it all working fine locally, but when I deploy I get the following error in Elastic…
21
votes
8 answers

ECS task not starting - STOPPED (CannotPullContainerError: “Error response from daemon request canceled while waiting for connection”

I'm starting a task in ECS using Fargate and after being in PENDING for a little bit it ends up in STOPPED with the following error: STOPPED (CannotPullContainerError: "Error response from daem When I expand out the details I see STOPPED…
tschumann
  • 2,776
  • 3
  • 26
  • 42
21
votes
2 answers

Deployment group's ECS service must be configured for a CODE_DEPLOY deployment controller

I've encountered following error when I'm trying to create Deployment Group for ECS Cluster in Code Deploy. I've created IAM that based on CodeDeploy ECS and its policy: { "Version": "2012-10-17", "Statement": [ { …
PPShein
  • 13,309
  • 42
  • 142
  • 227
21
votes
2 answers

CodePipeline: ECR source + ECS deploy configuration

Basically, I need to configure CI/CD with bitbucket source code to ECS containers. I want to use CodePipline to deploy new ECR image to ECS. Currently, there is no option in AWS CodePipline to specify bitbucket as the source. However, I've managed…
Sergey Nikitin
  • 845
  • 2
  • 13
  • 25
21
votes
4 answers

Stop ECS cluster temporarily

I want to stop EC2 instances after office hours to save costs. How can I do the same with ECS instances? Even if I stop all tasks/services, the instance is still there? Do I stop the EC2 instance directly?
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
21
votes
3 answers

AWS ECS Create Scheduled Tasks (cron) via Cloudformation

We want to create ScheduledTasks in AWS ECS via CloudFormation. Is there a programmatic way to create via boto or cloudformation?
siliconsenthil
  • 1,380
  • 1
  • 14
  • 25
20
votes
5 answers

docker context create ecs myecs - requires exactly one argument

I'm trying to create a Docker context that will automatically integrate with AWS's ECS. I'm following this tutorial The author just does: docker context create ecs myecs and gets a "pick an integration" prompt, whereas I get an error saying it needs…
user10706046
20
votes
1 answer

Docker memory limit causes SLUB unable to allocate with large page cache

Given a process that creates a large linux kernel page cache via mmap'd files, running in a docker container (cgroup) with a memory limit causes kernel slab allocation errors: Jul 18 21:29:01 ip-10-10-17-135 kernel: [186998.252395] SLUB: Unable to…
David
  • 1,391
  • 11
  • 22
20
votes
6 answers

Unable to assume role and validate the specified targetGroupArn

I'd like to create and deploy a cluster using terraform ecs_service, but am unable to do so. My terraform applys always fail around IAM roles, which I don't clearly understand. Specifically, the error message is: InvalidParametersException: Unable…
Jefftopia
  • 2,105
  • 1
  • 26
  • 45
20
votes
5 answers

I can't deploy a new container to my ECS cluster because of ports in use

The task definition my Service uses is pulling the "latest" tagged version of my image. When I update my service though and "force new deployment" i look at the events and see this: service MYSERVICE was unable to place a task because no container…
red888
  • 27,709
  • 55
  • 204
  • 392
19
votes
6 answers

Lambda does not have permission to access the ECR image

With the recent release of Docker Images for Lambda functions, I've decided to try out this functionality using CloudFormation. So, the lambda below considers a docker image stored in Elastic Container Registry, with permissions to access the image…
19
votes
3 answers

How to assign a public IP to container running in AWS ECS cluster in EC2 mode

I am trying to implement a multi-service ECS cluster using service discovery between the services. I'm attempting to follow the tutorial Creating an Amazon ECS Service That Uses Service Discovery Using the Amazon ECS CLI. However, it doesn't…
19
votes
2 answers

AWS ECS agent won't start

When I try to run the ECS agent, I get the following error in the ecs-init.log*: [INFO] Agent exited with code 5 [ERROR] agent exited with terminal exit code And in the ecs-agent.log* file I get this: [CRITICAL] Data mismatch; saved cluster…
Pedro Madrid
  • 1,887
  • 1
  • 20
  • 32
18
votes
2 answers

ECS CLI - You cannot specify an IAM role for services that require a service linked role

I'm trying to deploy a container to ECS (Fargate) via aws cli. I'm able to create the task definition successfully, the problem comes when I want to add a new service to my Fargate cluster. This is the command a execute: aws ecs create-service…
Juan Pablo García
  • 181
  • 1
  • 1
  • 3