Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-ecs]

Amazon EC2 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.

2
votes
1answer
57 views

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 ...
-1
votes
0answers
16 views

aws optimized linux get full of disk space

I have a spring boot application that running inside docker on aws ecs optimized Linux. My instance has a 100GB EBS volume attached to it. When I run "docker info" in the instance I get that the "...
0
votes
0answers
16 views

Kafka java.io.IOException on startup

We are having issues where kafka is almost unusable for the first 10-15 minutes after startup. After 10-15 minutes, everything seems ok and services can connect and reasd/write from queues as normal. ...
1
vote
0answers
13 views

ECS task definition versioning

We have two clusters for deploying ECS tasks - staging and production. When registering new task definition, in container definition we set ENVIRONMENT variable (can be "PRODUCTION" or "STAGING"). ...
0
votes
1answer
20 views

Can we make AWS ALB forward request from a single user to the same target always?

I'm new to AWS ALB and I have set up an AWS Application Load Balancer along with ECS cluster with 2 EC2 instances. The entire architecture works fine. But later I find that the API calls from a single ...
4
votes
1answer
71 views

AWS ALB resolves to 2 IPs. What are they?

I have set up an AWS ALB for my application. The ALB is connected to AWS ECS cluster which has 2 instances. The 2 instances are in private subnets. When I resolve the IP of the ALB DNS name, I get 2 ...
1
vote
2answers
39 views

Single container jobs on AWS

We would like to launch single Docker container tasks in a versioned and logged - but ad-hoc fashion on AWS. Each container task requires significant vCPU and RAM (maybe 16 vCPU and 64GB RAM). I can ...
2
votes
2answers
45 views

Is Fargate a good fit for independent containers that have low resource utilization?

I'm new to docker and ECS, so I might not use the right terms. Please let me know if I need to clarify. My Scenario: I have a number of independent containers. Each container represents a web site. ...
0
votes
0answers
11 views

Configuring Domain DNS pointing to ECS

I'm trying to get my website example.com point to an ECS Task. Problem: IP keeps changing on redeploys & there is no way to alias to the cluster. I tried Service Discovery but I can't seem to ...
0
votes
0answers
25 views

How to start >10 ECS Fargate Containers of Single Task

How do I start a single task with let's say a 100 containers, reliably? The best I could do so far is launching the same task multiple times, but this is unstable as the launching of the second/third ...
1
vote
0answers
35 views

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 ...
1
vote
1answer
27 views

How to update the minimum & maximum number of running tasks in ECS

I want to update the min and max number of tasks for a service in ECS in a lambda function (python with boto3). It looks like the closest thing is the desired count: desiredCount, but I don't think ...
2
votes
0answers
24 views

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

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

Redirect ephemeral port to 80

I am starting in AWS and server management in general and just set up a deployment pipeline with ECS and some containers. My container : My host port is 0 and redirected to container port 4200 (...
0
votes
0answers
77 views

java.sql.SQLException: Driver:org.postgresql.Driver@******** returned null for URL:jdbc:postgresql://… --port=5432

I want to deploy a docker image with AWS. I use 2 services:RDS database(POSTGRESQL) and ECS as a container for the deployment. I can connect to the database using https://docs.aws.amazon.com/...
0
votes
0answers
114 views

503 Service Temporarily Unavailable AWS

I followed this tutorial https://medium.com/@remy.dewolf/aws-fargate-first-hands-on-experience-and-review-1b52fca2148e but in the end when I copy-paste the DNS name I get that the service is ...
0
votes
1answer
25 views

Gerrit ssh users on EC2/ECS

I'm trying to deploy gerrit code review to AWS and am running into problems with trying to ssh in once it's deployed. When I've created a new user, what does work is SSH tunneling in like ssh -fNL ...
0
votes
2answers
36 views

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 ...
0
votes
0answers
48 views

How to secure AWS RDS MySql password for Docker Wordpress

I am relatively new to Wordpress and need help on how to secure AWS RDS mysql password. Currently I am providing the password in Task Definition as environment variables. These are picked up and wp-...
1
vote
0answers
280 views

ALB Connection Draining is always reaching the “Deregistration Delay”

I'm using ECS along with ALB to expose my containers to the internet. When I'm updating a container image (I'm using CloudFormation to update the tasks and services), the target group set the ...
0
votes
0answers
184 views

Nuxt SSR reverse proxy through Nginx on AWS ELB

I'm trying to set up a frontend application using Nuxt on AWS ECS. Architecture EC2: Within each EC2 instance: Nuxt is being served on port 3000 Nginx reverse proxies from port 80 to Nuxt's port ...
0
votes
1answer
235 views

How do you tag EC2 instances spawned by ECS in Terraform?

I have an ECS service that spawns some containers: resource "aws_ecs_service" "rocketchat" { name = "rocketchat-ecs-service" cluster = "${aws_ecs_cluster.rocketchat.id}" ...
0
votes
1answer
242 views

How do I find out the reason a task instance gets deregistered?

We have a bunch of services running in ECS. All of them are set to run at least two instances. With some of the services I notice that at irregular intervals one of the instances gets de-registered. ...
0
votes
0answers
40 views

The idiomatic approach to mounting “configuration” volumes on ECS?

I have a docker container that I would like to "port" to ECS. My Dockerfile contains a VOLUME instruction: VOLUME /app/configuration So using docker on a linux machine, you just point to the ...
1
vote
0answers
33 views

In ECS, how to mount container's user home and host's user home?

In ECS, how can I mount volumes the container's userhome and host's user home? "containerDefinitions": [ { "name": "web", "image": "nginx", "cpu": 99, "memory": 100, "portMappings": [ { "...
1
vote
1answer
82 views

Why does creating a service in AWS ECS require the ecs:CreateService permission on all resources?

I'm trying to create a service on AWS ECS, using CloudFormation. The user trying to create service has a role granting it the ecs:CreateService permission on the cluster that will host the service. ...
3
votes
1answer
735 views

HEALTHCHECK in ECS Container

I'm struggling setting up the correct HEALTHCHECK for a Container inside Task Definition in Amazon ECS. I've tried multiple solutions and can't get the simplest "always true" healthcheck to actually ...
0
votes
1answer
426 views

Why do I get an “empty reply from server” from AWS ECS?

I have a web service in a Docker image to which I am trying to upload two files: a 6MB file and an 18MB file. When running in my local Docker service, both files upload fine. With the same image in ...
0
votes
0answers
123 views

AWS - ECS with ELB not working, instance IP works though

I've set up an ECS cluster with a single container, with an ELB to serve the traffic to it. The ELB listener is HTTPS/443, and the host listener is HTTP/8080. I.e. when you hit the URL it's HTTPS but ...
4
votes
2answers
579 views

Assigning a domain name to an AWS Fargate task

I have an AWS Fargate task running a web app in a public subnet so it has a public address. My question is how to I connect a domain (through Route 53) to that task, so that nothing breaks when I ...
0
votes
0answers
86 views

Configure CloudWatch stream name using ECS Container Name

I'm using awslogs for Docker containers within ECS, and I would like to use the image name as the stream name in CloudWatch. However, I'm not sure where this logic should be placed. /etc/docker/...
0
votes
1answer
330 views

Routing HTTP traffic to user specific Docker containers dynamically

I am attempting to architect a service which would run user specific java processes within Docker containers in AWS (ECS most likely). One java process per container per user. The only exception to ...
0
votes
1answer
30 views

How do AWS ECS Task Definition updates work?

I have an ECS Service running a task definition. Whenever I push a new task definition out, I know there is some blue-green logic to drain the previous task before rerouting to the new task. What ...
2
votes
3answers
3k views

HealthCheck on ECS task without an ELB

We have a Docker container(Spring Boot) that runs in an ECS cluster. We run it without Elastic Load Balancing. We want to update the service without downtime, so when the new task is up and healthy,...
0
votes
1answer
195 views

AWS ECS: Service + autoscaling vs User Data launching Task

Trying to wrap my head around ECS using EC2 launch (not Fargate, at least for now). Assume a single long-running task that I want to launch with every container instance. The intended mechanism for ...
3
votes
1answer
405 views

AWS ECS: Unable to place task

I am trying to set up an AWS service with autoscaling. I have created a cluster with an application loadbalancer and created a task using a docker image that should be open on port 8080 for use. I ...
0
votes
0answers
73 views

How to configure routing between docker containers running on single EC2 instance using AWS Network Load Balancer?

I have a setup where I have ECS Cluster with a single EC2 instance with multiple Docker containers registering to a Network Load Balancer target group with random ports. Target group reports targets ...
0
votes
0answers
221 views

How to configure ipv6 for docker which is hosted in Amazon EC2?

I have been facing issue in configuring ipv6 in docker which is on AWS EC2. If i run ping6 google.com is working from the EC2 host. But the same not working inside the container but ipv4 is working on ...
1
vote
1answer
849 views

ECR cross-account pull permissions

We have two AWS accounts. Account A has ECR repositories and Account B is meant to be able to pull from them. I have tried setting the repository permission statements in Account A to allow pulling ...
0
votes
1answer
532 views

AWS ECS Cannot start task

I am trying run a task definition I have in AWS ECS. I have a default cluster, and I've got a Container Instance launched on it, and I'm trying to run a task definition I've got on the instance. The ...
0
votes
1answer
372 views

Fixed IP address, hosting via Docker in AWS ECS

We want to host our software on AWS via Docker using ECS. However, our software must connect to an external service, and they limit our access based on IP address. Is it possible to have fixed IP ...
0
votes
0answers
262 views

Autoscaling AWS ECS services with soft limits

As per the service utilization documentation it is possible to have a Memory utilizations over 100% when using soft limits in the ECS tasks (because you don't want to kill your app with hard limits). ...
2
votes
2answers
2k views

how to pull docker image on ECR using cloudformation template

I want to use docker image hosted on ECR and i want to automate the pull operation using cloudformation template. I attached IAM role with ECR full access to ec2 instance and it doesn't work. i am ...
0
votes
1answer
22 views

Low req/s ratio on EC2 machine on PHP Hello World

I’m having a problem with AWS. Im using Elastic Container Service that is created as on link https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html Instance type ...
0
votes
0answers
165 views

No network connection on Multiple docker container in Elastic Beanstalk

I'm trying to deploy a multiple docker container to Elastic Beanstalk. There is two containers, one for the supervisor+uwsgi+django application and one for the JavaScript frontend. Using docker-...
0
votes
1answer
100 views

Is it possible to use IAM roles for ECS tasks in an Elastic Beanstalk application?

I maintain a project running on Elastic Beanstalk on the Multicontainer Docker platform. To securely access the SSM Parameter Store I would like to give specific containers access to specific IAM ...
1
vote
0answers
98 views

Cloudformation ECS keep all taskdefinition revisions

In CloudFormation ECS when I update TaskDefinition tag Image:app:2 and make update-stack, I get only the one last new revision a myapp:2. How I can keep all previous revisions in which case manually ...
1
vote
0answers
452 views

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 ...
0
votes
1answer
449 views

How to set different destination ('region') of an aws cloudwatch logging agent inside a docker image?

Here is my dockerfile. FROM 796678920264.dkr.ecr.us-west-1.amazonaws.com/myproject/base:latest COPY /* / RUN python awslogs-agent-setup.py --non-interactive -c /aws-log.myservice.cfg --region us-...