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

Can I pause an ECS service instead of deleting it?

Haven't been able to find this in docs. Can I just pause an ECS service so it stopped creating new tasks? Or do I have to delete it to stop that behavior? I just want to temporarily suspend it from creating new tasks on the cluster
red888
  • 27,709
  • 55
  • 204
  • 392
36
votes
1 answer

ECR - What is the registry and what is a repository

Trying to familiarize myself with ECR - i understand that you should be able to push as many repositories as you like to Docker registry. However, ECR has a concept of a 'repository'. So if i have 10 different containers comprising my app, does it…
zaitsman
  • 8,984
  • 6
  • 47
  • 79
36
votes
5 answers

Multiple docker containers in one EC2 instance through AWS ECS

Is it possible to run multiple docker containers in one EC2 instance through AWS ECS (EC2 Container Service)?
tugberk
  • 57,477
  • 67
  • 243
  • 335
35
votes
4 answers

Static outbound IP for AWS ECS Fargate task

I have a Docker container with a service which I want to run through AWS ECS with Fargate. Unfortunately the service I want to run needs to access an SFTP server of a partner where the IP needs to be whitelisted. My question is now: How is it…
35
votes
8 answers

Amazon API Gateway in front of ELB and ECS Cluster

I'm trying to put an Amazon API Gateway in front of an Application Load Balancer, which balances traffic to my ECS Cluster, where all my microservices are deployed. The motivation to use the API Gateway is to use a custom authorizer through a lambda…
33
votes
7 answers

AWS::Event::Rule FailedInvocation debug info?

I have a AWS::Event::Rule that routes a S3 put event to a ECS task. I can see the rule is being triggered from the metrics, but also see FailedInvocation on every trigger. I suspect that's a permission / policy issue, but not able to find any debug…
33
votes
6 answers

AWS ECS Fargate Container Healthcheck command

I am trying to setup aws ecs fargate deployment configuration. I was able to run containers without container health check. But, I want to run container health checks too. I tried all possible scenarios to achieve this. But, no luck. i tried with…
Arjun
  • 533
  • 2
  • 9
  • 23
33
votes
2 answers

How to fix a drifted AWS CloudFormation stack?

How to fix a drifted AWS CloudFormation stack? I modified a BackendECS Service and it is now "drifted" but there's no information on how to resolve this? This is driving me insane? Zero information on how to resolve this?
ByteMe
  • 1,159
  • 2
  • 15
  • 28
33
votes
1 answer

Differences between AWS Fargate and multi-container Elastic Beanstalk?

I understand that ECS has EC2 and Fargate launch types that differ in the control they offer over the underlying environment configuration. Before Fargate, ECS was used to provide detailed control over the container environment, while Elastic…
33
votes
3 answers

Codepipeline: Insufficient permissions Unable to access the artifact with Amazon S3 object key

Hello I created a codepipeline project with the following configuration: Source Code in S3 pulled from Bitbucket. Build with CodeBuild, generating an docker image and storing it into a Amazon ECS repository. Deployment provider Amazon ECS. All the…
33
votes
2 answers

How to run AWS ECS Task overriding environment variables

To override environment variables via CLI we may use --overrides (structure) according to AWS ECS Commandline Reference. How to pass name value pairs (structure or JSON) in command line? [ { "name" : "NAME", "value" : "123" }, { "name" :…
sithumc
  • 3,254
  • 8
  • 27
  • 46
32
votes
4 answers

configured logging driver does not support reading : Docker

I am running my docker container in AWS ECS. When i try to execute the below command to read the logs from container, i am facing the below error. command: docker logs -f "Container ID" Error response from daemon: configured logging driver does not…
palani.p
  • 521
  • 1
  • 7
  • 13
32
votes
7 answers

ECS Fargate Scheduled Task not running

I'm trying to setup a scheduled task with ECS Fargate but I cannot figure out why it is not running. I can confirm the task works correctly using RunTask but when I try to trigger it on a schedule all I get is a bunch of 'FailedInvocations' with no…
32
votes
8 answers

How to restart containers in AWS ECS?

I have provided application configuration via consul's key-value store to the application containers running in ECS services. The application reads its configuration from consul only once on start up. When I need to change the configuration, how…
Nick
  • 6,366
  • 5
  • 43
  • 62
32
votes
4 answers

Docker push to AWS ECR private repo failing with malformed JSON

I am trying out AWS ECR and pushing a new tag to our private repossitory. it goes like this: export DOCKER_REGISTRY=0123123123123.dkr.ecr.us-east-1.amazonaws.com export TAG=0.1 docker build -t vendor/app-name . `aws ecr get-login --region…
vvondra
  • 3,022
  • 1
  • 21
  • 34