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

239 questions
2
votes
1 answer

Limit public access to AWS ECS Fargate Service

I have a service on AWS ECS deployed using Fargate. This service uses a Network Load Balancer (NLB) to allow an Elastic IP to be associated with the service. This is not an http service and is using port 5060 (SIP), hence the choice of an NLB.…
2
votes
0 answers

Docker storage re-mounted in read-only mode when container is generating a lot of large file(20G+)

I am getting stuck with an issue for a couple of days, and hope someone here could help or give some hints. So here is the issue: when I am running some docker images which performs large I/O operations, the container become read-only in the middle…
UTS-AnQ
  • 21
  • 2
2
votes
0 answers

Are there any non-fault reasons why ECS Fargate could stop/restart my task?

I'm evaluating ECS Fargate for a project where I'm planning to run a stateful server. Are there any reasons (other than host faults, or other non-recoverable errors) why ECS/Fargate would restart or stop my tasks? For example, would it ever try to…
2
votes
2 answers

How to add static entries to a AWS Route53 Auto Naming hosted zone?

I am running some of our backend REST services with Amazon ECS (Docker) and they change their public IP on every restart. I'm using AWS Route 53 Auto Naming (aka servicediscovery) to register new A records on the DNS when a new backend instance…
2
votes
3 answers

ecs instances generated via Auto Scaling group not registering to ecs cluster

I have created an ECS cluster linked to an Autoscaling group with an Application load balancer attached. The Autoscaling deploys the instances, the AMI is correctly choosen (ECS optimized). for whatever reason the ecs instances are being deployed by…
aerioeus
  • 123
  • 1
  • 5
2
votes
1 answer

How to automate OS/ECS-agent updating on a EC2 instance in ECS Auto Scaling environment?

First off: I feel like I still don't understand some of the fundamental concepts of AWS, so please bear with me, if this question is noobish. I have the following set-up in AWS: 1 ECS-Cluster with 1 single service The Cluster is configured to use 1…
2
votes
1 answer

Memory utilisation and OOM exception in AWS ECS

Here is a chart of MemoryUtilization from one of my service in an ECS cluster. As you can see the memory shot up to 25% briefly. In this cluster I have 3 t2.medium machines. The specification says these machines have 4GiB RAM. My current issue: I…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
2
votes
1 answer

How to replace ECS cluster instance ami to a different kind of ami while avoiding downtime?

The company I work for uses Amazon ECS. There are 5 or more production clusters configured there and there was some problem last week and AWS support team recommended us to change the ECS instance ami to an "Ubuntu ECS optimized" ami. I'd like to go…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
2
votes
1 answer

"unknown shorthand flag: 'e' in -e" from 'aws ecr get-login'

I am trying to push a docker image to the aws ecr When i try to login to ect, aws ecr get-login It expands to something like this docker login -u AWS -p eyJwYXlsbXXXXXXVZIn0= -e none https://88888888888.dkr.ecr.us-west-2.amazonaws.com I got…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
2
votes
2 answers

Why the health checks cannot reach the target groups in an AWS ECS?

This is the targets in my target group. They corresponds to the docker processes running in my ecs service. As you can see all processes are marked as either draining or unhealthy. Here is how I define my Health checks, I have tried the health…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
2
votes
1 answer

How do I determine the Container ID so that Terraform can attach it to an ALB target group?

I've used Terraform to create a VPC, subnets, ECS instances, routing and a task definition which I am able to run via the AWS console. That gives me a few instances of my small web app running in multiple containers. I have also been able to create…
Neil Trodden
  • 262
  • 5
  • 14
2
votes
2 answers

Amazon ECS Network traffic and ports

I have created a four subnet VPC, where two subnets are private and two public. Instances in the private subnet has only private IP's and reach the the internet through an IGW/NAT GW. I can successfully create an ECS clusters spanning my public…
Glenn Bech
  • 131
  • 1
  • 7
2
votes
2 answers

Terraform returns "Unsupported service namespace, resource type or scalable dimension" when I attach an auto-scaling group to an ECS service

In my terraform code, I am trying to attach an auto-scaling group to my ECS Service using aws_autoscaling_target. resource "aws_appautoscaling_target" "service_app_asg_target" { resource_id = "${aws_ecs_service.service_app.arn}" min_capacity =…
philippe
  • 243
  • 3
  • 9
2
votes
2 answers

Docker project on AWS ECS

I have a docker compose project that I am trying to deploy to AWS. Amazons ECS service seemed like a good fit, however when I try to deploy using the ecs-cli up command like so: ecs-cli up --capability-iam \ …
Alex Fu
  • 121
  • 2
2
votes
1 answer

AWS ECS Task is stuck at PROVISIONING

I have an ECS Cluster with a capacity provider and a service. The capacity provider runs an autoscale group, and when one instance of this group starts, at the end I can see that there are ECS instances avalaible. Actually, I can connect to them…