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

Could not parse .travis.yml

I'm trying to create CI pipeline with GitHub, Travis CI and AWS ECS. When I'm push commit to master branch, I'm getting error in travis CI: 'Could not parse .travis.yml'. I can't figure out, where is the problem. Travis dosen't provide more…
Michał Ściborski
  • 177
  • 1
  • 3
  • 8
6
votes
1 answer

Let's encrypt docker nginx on AWS ECS

I am trying to get an HTTPS certificate on a docker-based app running on AWS ECS (elastic container service). However, when finally trying to deploy the docker instances to ECS, I run into an undefined problem. INFO[0120] (service deploy) has…
Mike
  • 3,775
  • 8
  • 39
  • 79
5
votes
1 answer

Restart a single exited container in an ECS task

I have a container that is part of an ECS task definition, which I have marked as essential=false, because if this container goes down, I do not want the ECS agent to take down the other containers in the task. Making the container "non-essential"…
elethan
  • 16,408
  • 8
  • 64
  • 87
5
votes
1 answer

How do I increase number of websocket clients in Nodejs Socket.io server deployed on AWS ECS fargate?

I am running socket server container in AWS Fargate using socket.io Everything works fine with connected users around 800-1000, But when the number of clients increases old socket connection gets disconnected automatically with error transport…
Nitin
  • 2,701
  • 2
  • 30
  • 60
5
votes
2 answers

ECS Task Access Denied to S3

I have an IAM role set for my task with the following permissions, yet I get access denied trying to access the buckets. { "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Allow", …
Jonesie
  • 6,997
  • 10
  • 48
  • 66
5
votes
1 answer

ECS with persistent data on EFS or EBS with CloudFormation

I am looking for some expert with AWS to help me with this thing. I've spent almost one week trying to deploy my backend docker image to AWS with no 100% of the desired behaviour. Firstly I was suggested to try out the new Fargate service AWS…
4
votes
3 answers

How to make two containers connectable in AWS ECS Fargate?

I have two containers added to a task definition Node Container: name :nodeAPI port :exposed 5001 mongoconnection string in the env variable : mongodb://mongo [name of mongo container] Mongo container: name :mongo port :exposed 27017 The node…
Tanmay Bhattacharya
  • 551
  • 1
  • 5
  • 16
4
votes
1 answer

AWS ECS RunTask overrides for memory and cpu are not working

I'm trying to override the CPU and memory limits on a container when using the RunTask command. I'm using the Python SDK, boto3. The container has default CPU limit of 0 (unlimited) and a soft memory limit of 1024. That's all fine and good. When I…
bluescores
  • 4,437
  • 1
  • 20
  • 34
4
votes
3 answers

AWS ECS Is it possible to alert on memory utilization limit hit?

I've read ECS Monitoring documentation, but not found how to alert on ECS Task memory limit hit with CloudWatch Events or Metrics help. I have situation, when ECS container breaks default task hard limit 512 Mb and restarts. CloudWatch Event…
Tensho
  • 763
  • 1
  • 7
  • 23
4
votes
1 answer

Can't connect to AWS Network Load Balancer with Fargate

I've created a Network Load Balancer for use with ECS Fargate. When I try to connect to the load balancer (using either the ELB domain name or it's IP addresses) it won't connect. I don't even see the connection in the flow logs. The machine I'm…
Tim Ludwinski
  • 2,704
  • 30
  • 34
4
votes
1 answer

dockerized logstash is generating huge log files

I'm running a logstash container in AWS ECS from the following image docker.elastic.co/logstash/logstash:5.5.3 Everything is at default and I am not using the stdout plugin. But logstash still outputs all the log items to stdout and the container…
lingxiao
  • 1,214
  • 17
  • 33
4
votes
1 answer

AWS ECS Periodical Job - Automatically Scale in instance

Amazon ECS provides really good service for scheduled tasks : ECS Scheduled tasks that works pretty well. However it's important in this always keep one ECS instance in ECS cluster. What is the best way: Launch/scale in ECS instance in for…
user1459144
  • 4,439
  • 5
  • 28
  • 35
3
votes
1 answer

AWS ecr get-login generates docker login command with an unknown flag

when I generate the docker login command to my AWS ECR with the following command: aws ecr get-login --region us-east-2 I get an output like: docker login -u AWS -p [bigbass] -e none https://xxxx.dkr.ecr.us-east-2.amazonaws.com The problem is the…
jigarzon
  • 1,208
  • 2
  • 12
  • 28
3
votes
2 answers

AWS ECS websocket connection draining while updating ECS service

I am using AWS ECS to run chat application written in nodejs with help of socket.io. I used AWS Application Load Balancer as front and created one target group, target group contains AWS ECS service. Now, let say I create 1 service with my…
Nitin
  • 2,701
  • 2
  • 30
  • 60
3
votes
0 answers

Grant containers internetaccess in awsvpc network mode

The situation is as follows: Two containers reside in the same task definition. A service with this task definition is running on a specific ec2 instance. I've configured the VPC of this instance to use a NAT gateway. This has been successful I…
Quinten Scheppermans
  • 954
  • 1
  • 10
  • 29