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
1
vote
2 answers

AWS ECS: Will Service Auto Scaling create EC2 instance automately?

I am confused about how Service AutoScaling automately works. Will it create EC2 instance automately? I create it and add it to a Cluster's service, but it does no create EC2 for placing my required number of tasks. Is any thing wrong with my…
Rocky
  • 1,287
  • 3
  • 15
  • 37
1
vote
1 answer

AWS - Application Load Balancer with HTTPS to ECS container not working as expected

I've setup an ECS Cluster running a single container as is. The container configuration has host port set to 0 to make use of dynamic port mapping. I've checked and all the network related setup is correct. If I hit the IP of the EC2 instance…
Sollie
  • 367
  • 1
  • 3
  • 9
1
vote
1 answer

How can I list my containers / repos from Amazon ECS

I thought this must be an easy task - show my repos/containers from ECS on the cmdline but I couldn't find anything: https://docs.aws.amazon.com/cli/latest/reference/ecs/index.html#cli-aws-ecs Any ideas?
Mike Mitterer
  • 6,810
  • 4
  • 41
  • 62
1
vote
1 answer

Launch ECS Service on a specific Autoscaling Group in a Cluster

I have one ECS Cluster with two ASGs. The ASGs use different AMIs. Also, I have two ECS Services. Each service needs to be launched on a different ASG (one reason is the services require different AMIs). In other words, I'd like to run Service 1 on…
1
vote
2 answers

how to pass JVM arguments in AWS ECS?

I am trying to set up a microservice in Amazon ECS. How can JVM arguments be configured and passed to the microservice?
user3760894
  • 267
  • 4
  • 13
1
vote
1 answer

ECS container gets killed every ~1 hour

UPDATE: Turns out it was running out of disk space My ECS container keeps getting killed approximately 1 hour after it launches. It’s happening around 55 to 65 minutes. Then a new container is created which then gets killed after about an hour.…
Z Jones
  • 2,015
  • 4
  • 23
  • 42
1
vote
1 answer

Finding public IP addresses of all EC2 instances in a ECS cluster

I try to find public IP addresses of all EC2 instances within a ECS cluster. I can see EC2 instances id's with command: aws ecs list-container-instances --cluster myCluster But this won't show IP addresses. I searched ECS CLI documentation but I…
JavaRed
  • 708
  • 4
  • 10
  • 34
0
votes
1 answer

Setup logentries for aws ecs

I'am trying to make my aws elastic cluster service send logs to logentries. But I can't find any good documentation on how to do it. When i create task definition I have the option to choose logentries as image below shows: But where do I find…
Moddaman
  • 2,538
  • 3
  • 23
  • 41
0
votes
1 answer

Aws ecs service isn't updating new task definations

I have created new ecs cluster with 2 container instances and running 2 tasks, whenever i update new task defination in service, service is not replacing existing task and it's trying to create new task and i am getting error events like no enough…
Ashok Reddy
  • 1,060
  • 1
  • 16
  • 28
0
votes
1 answer

How to expose a port for AWS Batch container?

Per my understanding, "task definition" for ECS is being created by Batch, and some fields, like env variables or mounting points, can be described in "job definition" and that is reflected in "task definition". But what about other "task…
dveim
  • 3,381
  • 2
  • 21
  • 31
0
votes
1 answer

Configure awsvpc containers to have internet access

I have containers configured to use awsvpc network mode. Each task has its own ENI, so essentialy they are kind of "EC2 instances" that have no public IP. I also use WebSockets (socket.io), so I need my LoadBalancer/NAT Gateway to work with…
Ruslan Plastun
  • 1,985
  • 3
  • 21
  • 48
0
votes
1 answer

How to revision Task defination in AWS with respect to existing task definition using AWS Cli

I m trying to change some parameters in a Task definition in AWS(like CPU and Memory). I can do that process directly in Aws account by revisioning the Task definition and editing the parameters through JSON. But now I m trying to automate my…
0
votes
1 answer

AWS ECS - Cluster Utilization

According to aws doc, ECS Cluster CPU is calculated as follows. Cluster CPU utilization = (Total CPU units used by tasks in cluster) x 100 / (Total CPU units registered by container instances in cluster) […
0
votes
1 answer

Best way to re-deploy NodeJS API on AWS

I have deployed my NodeJS Express API to AWS ECS I created : cluster cluster service task definition ECR If I need to deploy another API for testing/development, do I need re-create these : cluster cluster service task definition…
code-8
  • 54,650
  • 106
  • 352
  • 604
0
votes
1 answer

How to update .env value of container definitions in AWS?

I’m new to AWS ECS deployment. This is my first time. I have updated the .env in my container definition on my AWS account. But when I run docker exec e718a29eb0e3 env in my container I still seeing the latest value updated. I even tried…
code-8
  • 54,650
  • 106
  • 352
  • 604