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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

How to use separated load balancers for frontend and backend in ECS?

I have the following terraform configuration for a load balancer running in ECS AWS for my django app container deployed in ECS: resource "aws_lb" "api" { name = &...
Lucas's user avatar
  • 113
0 votes
0 answers
66 views

Amazon ECS container showing strange CPU usage after deployment

I'll preface this by saying I'm fairly new to working with AWS. Yesterday I deployed a new version of one of our services to our test environment. Most people are on holidays at the moment, so there ...
mal's user avatar
  • 137
0 votes
1 answer
62 views

AWS ALB Healthchecks Against ECS Services Periodically Failure For No Discernable Reason

We completely host a constellation of services in AWS (no external dependencies as far as these services go). We periodically receive healthcheck failures (502 as public services try to contact the ...
Dustin Oprea's user avatar
0 votes
0 answers
37 views

Kubernets: what exactly needs to be installed on each server/node and how?

I have coded AWS instances that can serve as nodes where my containers will run. So by default each of these instances have docker installed. This part is working fine. Eventually i would like to ...
mike01010's user avatar
1 vote
1 answer
70 views

WireGuard default route in AWS ECS container

I have a container inside an AWS ECS instance. I want to establish a connection to a WireGuard server from that container. The connection itself works but I have issues with routing all the traffic ...
Andrei Glingeanu's user avatar
0 votes
0 answers
48 views

ECS: downtime due to unhealthy containers killed before replacement

I have an ECS cluster configured with ELB healthchecks and autoscaling policy on average CPU. When there is a spike in traffic, some containers stop responding to ELB healthchecks and are marked as ...
revy's user avatar
  • 101
2 votes
0 answers
348 views

Why can't my ECS Fargate cluster write to my mounted EFS volume, all deployed with Terraform?

I've got a Terraform deployment that deploys a Docker image into ECS Fargate. It attaches an EFS volume to the container. When I SSH into the container, I see the volume mounted, but I am unable to ...
CryptoFool's user avatar
0 votes
1 answer
304 views

Run containers using EC2 reserved instance in fargate ECS

We use AWS fargate with containers. To reduce price we are looking for options. So question how to use AWS EC2 reserved instances with fargate? As I understand steps look like this: purchase reserved ...
Inom Turdikulov's user avatar
0 votes
0 answers
291 views

Getting 504 response timeouts via AWS ALB, but not directly

Our production environment contains 2 ALBs: a public facing ALB and a private one. Both of these ALBs support HTTP/2. Now I have a target group which supports HTTP/1.1 containing an ECS service. The ...
Ashesh's user avatar
  • 233
0 votes
0 answers
674 views

AWS ECS: Networking between container Nginx and PHP-FPM on the same host

So I have spent the past two weeks learning about ECS and trying to setup a very basic task with an nginx container and and a PHP app in another container. It seems like I'm very close, but I'm now ...
tmath's user avatar
  • 111
0 votes
1 answer
128 views

Will aws elb address change over time?

I have created a load balancer pointing at my api instances. I got an automatically generated url which looks something like this: xxx-xx-xxxxxxxxxx.us-east-2.elb.amazonaws.com I want to connect it to ...
April Henig's user avatar
0 votes
1 answer
992 views

502 bad gateway - aws application load balancer, ecs

I'm having a simple app that I've been experimenting with to learn aws. I first created a http version of a docker image pushed to ecr, ecs using it to create services, and tasks, application load ...
Gergő Horváth's user avatar
0 votes
1 answer
894 views

How to pass arguments into scheduled task on AWS Fargate?

I have a docker container (derived from PHP-CLI) that may be launched like this locally: docker run php-cli-container php public/index.php argument1 argument2 I uploaded the container to Amazon AWS ...
andreas's user avatar
  • 221
0 votes
1 answer
43 views

How can I create an ecs service for my deploy

I’m learning CI/CD pipelines and I’ve come up with a question. I have a CloudFormation file that creates some static resources for my app (ECR repository, ECS Cluster and some roles) When creating my ...
Arthur Luiz's user avatar
1 vote
2 answers
1k views

How to make my ECS Task pull my ECR image

I am trying to create a ECS task and be able to access and pull from ECR, but I am getting an error. How can I resolve this issue? Raw error: Cannotpullcontainererror: pull image manifest has been ...
Arthur Luiz's user avatar
0 votes
0 answers
318 views

What defines the AWS ECS task re-creation timeout

I have an AWS ECS Service with 2 REPLICA tasks in it. When I manually stop one of the tasks, the new one is created in almost exactly 5 minutes. Similar 5 minute timeout happens when one or more tasks ...
Anton Boritskiy's user avatar
0 votes
0 answers
245 views

AWS Autoscaling instance group refresh without downtime?

How is it possible to perform an instance refresh within an autoscaling group without any downtime? Running two ec2 instances with 3 public facing services running 2 tasks each. The services have an ...
BillPull's user avatar
  • 101
0 votes
0 answers
69 views

What are the differences between the migration options for Elastic Beanstalk Multi-container Docker environments to AL2?

We're running an Elastic Beanstalk Multi-container Docker environment on Amazon Linux 1, which has been deprecated and needs to be migrated to Amazon Linux 2. The documentation presents two options ...
Dario Seidl's user avatar
1 vote
0 answers
133 views

which ECS task network mode?

I have an Application Load Balancer in a private subnet (used by API Gateway) that targets an ECS task. I want that task to only be accessible from inside the VPC, not from the internet, but I do have ...
Max's user avatar
  • 11
0 votes
0 answers
208 views

Why does ASG for Target Group keep adding Targets with port 80 when all I have are containers with Dynamic Mapping? (ECS running Rails app)

Current setup is a Target Group with an Auto Scaling Group providing the instances for an ELB (Application Type). This strange behavior is happening, as soon an instance is added, it has this port 80; ...
TechOcean201's user avatar
0 votes
1 answer
185 views

Force ECS to wait for previous container to have exited before deploying new task version

I have a couple of ECS services that cannot under any circumstances run two instances of a container (embedded elasticsearch, mysql). Is there any way to force ECS to wait until the container has ...
user1933738's user avatar
0 votes
1 answer
1k views

ECS containers on EC2 cannot mount EFS volumes

I have created an ECS cluster backed by an EC2 auto-scaling group and launched a service in it that uses EFS for NFS storage. The service is running in awsvpc network mode so that I'm able to control ...
user1933738's user avatar
0 votes
1 answer
593 views

terraform: Configuring load-balancer to use dynamic port of ECS task/service in AWS

This is sort-of a general question for how dynamic port assignments are supposed to work, though my specific context is trying to figure-out if there is a natural way for a target-group to know the ...
Dustin Oprea's user avatar
1 vote
1 answer
809 views

Why Can't I access my website ,even if 80 port of my ecs server is open?

Os system of ecs server :ubuntu. Os of my computer:win10. I deployed my web project to my ecs server. I could access my project online until I installed the ufw on my ecs server. I configured the ...
Abner's user avatar
  • 11
0 votes
0 answers
253 views

AWS ECS in private subnets with autoscaling not working without NAT gateway, why?

I have stack in cloudformation, containing ECS cluster with autoscaling EC2 instances, running in private subnets. ECS is covered by ALB (in public subnets). Container instances get images from AWS ...
wtdmn's user avatar
  • 63
0 votes
1 answer
538 views

ECS/Fargate CPU peaks only to 60%

We have created an ECS/Fargate container with 2 VCPU and 4 GB RAM, running a NodeJS server in it. When we do the load testing using JMeter the VCPU reaches a maximum of 60% and flats out with the ...
Praveen Sripati's user avatar
0 votes
1 answer
751 views

ECS service is not starting tasks

Hello I am using aws ecs and terraform to deploy a few containers. I am trying to create an ecs cluster with ec2 instances and in each instance I want to run two nginx containers. I have a load ...
Hassan Kamran's user avatar
0 votes
1 answer
529 views

How to assign stable/elastic IP to AWS ECS (EC2) service , which can be whitelisted by client at their firewall

I am running service on ECS, which calls third party API. How can I have stable/elastic IP which third party can add to their firewall? EC2 to should be able to scaleup and scaledown, ECS is free to ...
archit's user avatar
  • 1
1 vote
2 answers
627 views

How to configure service discovery in aws ecs using the new console

In the classic AWS console it was possible to configure service discovery. It looks like this has been dropped in the new console. How does it then need to be done in the new console? Thanks
Jan's user avatar
  • 11
0 votes
1 answer
768 views

which AMI image we have to use for ECS cluster as Amazon ECS-optimized AMI is getting depricated

I saw this document which says Amazon ECS-optimized AMI is getting depricated and they are not going to maintain this any more. So if I want to create a new ECS cluster and use ec2 instad of fargte ...
Naggappan Ramukannan's user avatar
1 vote
1 answer
681 views

Fargate task from service with Public IP disabled can't download env file from S3

We have a Fargate service that should be exposed to the internet via a load balancer, and since for tests we had used so far the random Public IP of the task, we decided to disable the Public IP, so ...
Ncifra's user avatar
  • 111
0 votes
1 answer
256 views

Redis on AWS task

I have an API that have some heavy processing endpoints. To avoid problems, I created a queue system using redis. Now I put this API into a docker, and I'm using ECS to deploy service that creates a ...
Learning from masters's user avatar
0 votes
1 answer
1k views

How to assign internal hostnames to Fargate internal services?

I'm using CDK (via the Typescript lib) to setup my network infrastructure on ECS. There are some background workers that often report errors to a Slack channel and I'd like to assign random hostnames ...
Pedro Nascimento's user avatar
2 votes
1 answer
6k views

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 ...
Learning from masters's user avatar
0 votes
1 answer
427 views

AWS Fargate Load Balancer timing out

I'm setting up an AWS ECS/Fargate cluster/service/task with a load balancer for the first time. I believe the task is good since I can go to the task's (public) IP directly in a browser and see the ...
ScottyB's user avatar
  • 113
0 votes
0 answers
263 views

figuring out why a docker container becomes unresponsive

I'm using AWS Elastic Container Services to start and stop Docker containers as demand dictates. The problem is that occasionally, in the middle of the day, a subset of employees just lose the ability ...
neubert's user avatar
  • 317
0 votes
0 answers
468 views

SQS is not working for multiple ECS (fargate) instances

I am using an application load balancer, under this ALB, a target group is provided. In this target group, two fargate ECS instances are running. These two instances use the same PHP docker image. ...
aks's user avatar
  • 57
1 vote
1 answer
1k views

ECS restarts due to health_check failure when multiple other requests are slow to return

We noticed that our ECS Fargate backend services restart due to a health check response timeout: (service our-site-com-stack-BackendApiServiceStack...) (port 8000) is unhealthy in (target-group arn:...
Zev's user avatar
  • 111
3 votes
1 answer
847 views

Are the units incorrect for Storage Read / Write graphs in AWS ECS Container Insights?

In AWS Console > CloudWatch > Container Insights > Performance monitoring > ECS Tasks, the graphs for both Storage Read and Storage Write have units shown as Bytes/Second like this: ...
sparrowt's user avatar
  • 257
0 votes
0 answers
507 views

AWS Fargate is slow when calling system commands. How do I debug it and what can be wrong?

I've been running my PoC on Fargate without many problems. It's a Micronaut Java app with not much happening on its own. I'm using the smallest 256mb/0.25CPU Fargate deployment. I'm running a simple ...
Serge Kuharev's user avatar
0 votes
1 answer
2k views

AWS Route 53 pricing for hosted zones and domain names

Novice dealing with DNS services here. I'm setting up an ECS cluster of Fargate containers that need to communicate with each other. They are deployed as separate services in the same cluster, so I ...
gsantos's user avatar
1 vote
0 answers
308 views

Mounting EC2 directory with existing data to Fargate container using EFS

I have an EC2 instance with a huge directory(ex. /large-dir) that containers need to access. Both instance and container share same network and security group. I'm able create and mount an EFS to ...
Rohini's user avatar
  • 55
2 votes
1 answer
164 views

How to view and interact with terminal logs generated by AWS ECS

How do people view and interact with terminal logs generated by AWS ECS? I've been using the ECS task view so far, but I feel the UX is bad and the Cloudwatch UI has similar problems. How do others ...
Kurru's user avatar
  • 165
0 votes
1 answer
2k views

How does memory and memoryReservation work for Tasks running on EC2 ECS?

EC2 ECS lets you specify memory and memoryReservation for both ECS tasks and the containers running within those tasks. I understand that memory and memoryReservation on the container settings map to ...
Daniel Compton's user avatar
1 vote
0 answers
307 views

Running certbot on an ECS instance

I am trying to run certbot on an ECS instance which is running a docker image (docker.io/existdb/teipublisher). The image runs well and I have associated it with a custom subdomain teipub.dh-dev.com ...
GilShalit's user avatar
  • 149
0 votes
1 answer
329 views

aws - ECS capacity provider permission

I'm trying out teraform for managing my infrastructure and got into a bit of an issue and I'm not sure what to look for. I'm attempting to create a capacity provider for my ECS cluster however I'm ...
joebegborg07's user avatar
1 vote
1 answer
3k views

(ServiceNotFoundException) when calling the UpdateService operation through CircleCI

As stated, running this through the aws-ecs orb for circleci. Error An error occurred (ServiceNotFoundException) when calling the UpdateService operation: I've already looked at https://discuss....
prefontaine's user avatar
0 votes
1 answer
1k views

How to get a static IP address for outbound requests in AWS?

We are in an integration process and the company is asking for whitelisted static IP addresses. The suggested solution by AWS is to create new ECS that uses new subnets. Is it possible to change ...
Buse B.'s user avatar
1 vote
1 answer
1k views

How to authorize only IP from a Fargate ECS service for MongoDB Atlas Cluster

I have an ECS Fargate service mapped to an Application Load Balancer on AWS. In this service, there are several task that are frequently killed and restart. These tasks should be able to connect to a ...
Howins's user avatar
  • 113
2 votes
0 answers
220 views

Why can't I use AWS EC2 ImageBuilder to create a RHEL based container?

In the AWS console for EC2 ImageBuilder the option to create a Container Recipe using RHEL as the base image seems to be disabled. From EC2 Image Builder console -> Container Recipes -> Create ...
marack's user avatar
  • 121

1
2 3 4 5