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
0answers
6 views

ECS Cluster Service not Running Containers

Recently I created an ECS cluster. I used the wizard on the AWS console to create it using an existing VPC, subnets, keypair and a previously created IAM role (from another cluster creation operation)....
0
votes
1answer
12 views

Dockerized Laravel application with volume on AWS Fargate issue

this is my scenario, I have a Laravel 8 application that I'm trying to deploy using AWS ECS through AWS Fargate. This is the useful part of my dockerfile: ### ... Previous composer and npm stages ...
0
votes
0answers
23 views

ERR_CONNECTION_RESET when running a container in AWS Fargate using Tomcat 9

I'm testing an app in AWS ECS running in Fargate. I can access its home page properly but I´m having some issues while accessing our main app. I wanted to check its logs but I cannot access the ...
-1
votes
1answer
13 views

How to reference container hostname or ip from another container in the same ECS task in cloud formation

I'm trying to setup an AWS ECS cluster which has a single task that has 3 separate containers for prometheus, promscale, and prometheus-ecs-discovery. I'm trying to figure out how to dynamically set ...
0
votes
0answers
19 views

How to migrate to Fargate from EC2 in ECS cluster?

I am planning to migrate to Fargate for autoscaling purposes. I already have task definitions for both my staging and production environments which are currently live. There's two ways I thought I can ...
1
vote
1answer
19 views

Idiomatic way to get IP addresses of group of containers in ECS?

I'm building an internal proxy service on AWS where a user can send a request to a server that server will send the request to one of several proxy containers in an ECS cluster I'm not sure what's ...
1
vote
1answer
36 views

Caching layer in front of AWS Elastic Container Service

I've got an ECS that implements a REST API, which does some fairly heavy computing, but can massively profit from caching at the request level (since it'll receive many identical requests). I ...
0
votes
0answers
16 views

Terminating AWS ECS services and tasks automatically

We have created a ECS cluster with Fargate and have created few tasks in service to be used in a CI/CD pipeline. Service has desired count of 1. So if we terminate any task, new task comes up ...
0
votes
0answers
45 views

ECS task's public IP stops responding after a while

I'm trying to deploy a sample application to AWS ECS and I'm experimenting something weird. I have created a task definition with a container definition using the sample image amazon/amazon-ecs-sample....
1
vote
0answers
38 views

Service Creation failed AWS ECS Service with elastic inference accelerator (EIA)

I am trying to create a service in my ECS cluster to run a task that uses elastic inference accelerator (EIA). However, when I try to create the service, I get the following error: I have read the ...
1
vote
0answers
16 views

Using the “draft” feature of a GitHub PR to stop AWS CodeBuild from building on a PR change

I've set up a CD pipeline from Github to ECS for a non-profit I'm working for. The AWS CodeBuild starts every time a PR is opened, changed, or merged. Sometimes, however, PRs are opened but marked as ...
1
vote
1answer
42 views

AWS ECS task definition workflow

I've setup one of my services to be deployed to ECS (EC2). I have the service and task definition configured via terraform and then to deploy I'm using Github actions where it seems I need to define ...
2
votes
0answers
32 views

Recommendations for high-volume request logs from containers

We have a service that uses raw AWS EC2 instances to field requests. Response times are in the 2-3 ms range. That response time is important to the health and success of the service. Part of the ...
1
vote
0answers
58 views

Can the internal hostname be set for an ECS container on AWSVPC

I'm trying to run RabbitMQ in ECS on an AWSVPC network with EFS persistence. The problem is that ECS on AWSVPC resets the hostname every time the container is restarted. This results in rabbitmq ...
0
votes
0answers
18 views

Any non-bug related reasons why an ECS-Managed EC2 instance would be started without scale-in protection in spite of ASG setting

I have deployed an EC2-backed ECS cluster via terraform, which has the managed_termination_protection and managed_scaling settings enabled in the capacity provider. The ASG also has the ...
0
votes
1answer
26 views

How can I prevent apache to log ELB Health Checks in Docker?

I have a dockerized web application deployed in ECS, and everything works just fine, logging in cloudwatch every request, including a HUGE number of health checks, which are configured to hit the ...
1
vote
1answer
442 views

port mapping didn't happen for a container deployed on AWS ECS(uses EC2)

Context: I am using Circle CI's aws-ecs/deploy-service-update orb to deploy my docker container by pulling the latest image in AWS ECR and deploy it in AWS ECS with AWS EC2 instance. This container is ...
1
vote
1answer
62 views

AWS: How do I restrict deployment to ECS clusters using IAM

I have multiple Fargate clusters in a single AWS account. I wish to ensure that a given service account (used by the build pipeline) can only update Services within a given Fargate clusters. The IAM ...
0
votes
0answers
39 views

How can I set an event-driven ECS cluster for GPU-based image classification work?

I am working on developing a HIPAA compliant web application that uses machine learning to analyze images. The current setup for the application is everything runs on a single g4dn.2xlarge ec2 ...
0
votes
0answers
17 views

Create a CI/CD Pipeline in AWS using AWS Code Commit, ECR and EKS with Custom docker image name

I want to create a CI/CD pipeline using AWS Pipeline with code commit, ECR and EKS services, I am able to create a pipeline with latest tag name, but want to create a custom docker image. My pipeline ...
2
votes
1answer
515 views

EC2 Instance cannot connect to ECS Cluster

Helo, I have empty AWS ECS Cluster but I am unable to put instances into it. I wanted to use Launch templates and Autoscaling Group, but I am unable to assign created EC2 Instance. The issue is in ...
0
votes
0answers
36 views

How to prevent critical data leaks in Amazon ECS?

I am not sure whether my basic assumption for this question is correct, but as I understand, there is the following problem: A user who has the permission to create ECS task definitions can access all ...
0
votes
1answer
445 views

Amazon ECS [Fargate] - How do you restart all Tasks in a Service?

We have a task that loads some configuration from database. After the settings are updated on db we would like to be able to restart all the tasks in a service so that the settings propagate to all ...
0
votes
0answers
211 views

Using InputTemplate with aws put-targets to send event details to ECS

I am using InputTemplate with aws put-targets to set up a rule target to send event details to ECS, and I cannot get the syntax correct. I am using the commandline, aws events put-targets and ...
0
votes
1answer
98 views

Laravel events behind load balancer - how to make the event visible to all the servers in the autoscale group

I have an application running Laravel 6.1. There are clients which connect to it via laravel websockets and listen for events. I have an external service which sends post requests to this server which ...
0
votes
0answers
20 views

ECS Container Mount Mode Z or “”

Running Grafana with Compose makes all my three mounts to be as "Mode": "rw", but once I run it on ECS with EC2 type, I get "Mode": "z" and "Mode": &...
1
vote
1answer
164 views

Do I need an internal Load Balancer for my ECS Services?

I have an ECS cluster with 3 services(FARGATE), the 3 services are in private subnets. 1 is the web app that is publicly accessible through an Internet-facing Load Balancer and the 2 others are only ...
0
votes
0answers
366 views

autoscaling php-fpm in AWS ECS

I have a t3.medium instance managed by ASG and used by ECS. My application requires approximately 25% of the capacity of this instance to operate at a minimum. will work in the standard nginx + ...
1
vote
1answer
444 views

AWS Network Load Balancer for Fargate tasks with end to end encryption

We currently have a AWS Fargate service running Nginx behind a AWS Application Load Balancer. In front of this, we also use Cloudflare (hence having Cloudflare origin certificate in ACM). Since the ...
0
votes
2answers
780 views

Can no down time deploys be accomplished on AWS ECS with rolling update when tasks use up all the container's resources?

Currently I have a ECS cluster running a service that is running a single task per container instance, each task takes nearly all the container instance´s resources. I'm wondering if there´s some way, ...
2
votes
1answer
524 views

Can't install certbot on an Amazon Linux 2 EC2 instance

I set up Amazon Linux AMI EC2 instance via ECS (elastic container service). It seems like by default it doesn't have that many packages installed. When I'm trying to install certbot using the command: ...
0
votes
2answers
549 views

How to get the value of ECS_CONTAINER_METADATA_URI_V4 in AWS ECS container?

The question is pretty straightforward but a little background always could be helpful. I need to get a container id from the container itself, and the value of it will be used as a logfile name. ...
0
votes
0answers
246 views

Only have 16GB of disk space available in Fargate 1.4

I'm using ECS with the Fargate run type and one of my tasks is running out of disk space. When I run df -f inside the container during the task execution It shows me that I only have 16GB of disk ...
1
vote
0answers
145 views

Environment variables aren't availiable during SSH session to AWS ECS container

I have configured ECS containers. Everything works, however when I'm connecting to a container through SSH, there are no environment variables that are defined in a task definition. Is there a way to ...
0
votes
0answers
56 views

Managed ECS scaling out despite capacity being available

I have an ECS cluster which is utilising managed scaling using the CapacityProviderReservation metric provided. My task definition is confused in to have No task mmemory or cpu reservation Memory ...
0
votes
0answers
167 views

AWS ECS cloudformation error CannotPullContainerError

I have created a cloudformation template with Ecs Cluster, Auto scaling group, Application load balancer and Target group. I have copied the Autoscaling group, launch template, role definition and ...
0
votes
0answers
16 views

AKS CI Failed: started a new tast on each push to Github, instead of replacing the running task

I wanted to rebuild the Docker image for an API service and run an instance in replace of the original task every time I push to the Github repo. Now I have two parallel tasks instead, and the public ...
1
vote
1answer
734 views

How to restart a single container in AWS ECS Task Definition

In my AWS ECS Cluster, there is one service running two tasks. Each Task has 5 containers. Two of them are not essential. Among these two, one of the containers fails some times, but I am not sure how ...
1
vote
2answers
206 views

Swap space use for AWS ECS Cluster instances

I'm in the process of trying to optimise and consolidate our AWS instances. Part of this involves standardising (where possible) our instance classes, to make optimal use of reservations. We have a ...
0
votes
0answers
582 views

ECS-CLI: Getting “is used but no declaration was found in the volumes section” on Windows

I'm trying to run ecs-cli compose up on Windows 10 to run docker-jitsi in the cloud. Here is docker-compose.yml sample: https://github.com/jitsi/docker-jitsi-meet/blob/master/docker-compose.yml When ...
1
vote
1answer
2k views

AWS ECS CannotStartContainerError: Error response from daemon

I'm trying to start a task with a container with the following command: /bin/sh -c "export KAFKA_LISTENERS=\"PLAINTEXT://$$(hostname -i):9092\" && start-kafka.sh" But I'm getting this error ...
3
votes
1answer
382 views

How to send HTTP requests between AWS ECS services

Currently, I'm trying to figure out how to configure communication between ECS services. I'm planning to have the following setup: Backend service Fronted service One application load balancer I ...
1
vote
1answer
513 views

ECS container not starting: error looking up volume plugin amazon-ecs-volume-plugin

I have a EC2 + EFS + ECS setup on which I run a few docker containers. My EC2 instance died, and a new one spun up, but when starting the tasks on the new instance, I get the following error message ...
1
vote
1answer
484 views

create a CloudWatch Alarm when an ECS service unable to consistently start tasks successfully

If I release a new Docker image with a bug to my ECS Service, then the service will attempt to start new Tasks but will keep the old version around if the new tasks fail to start. In that scenario, it ...
0
votes
1answer
39 views

How set a fixed private IP for ECS containers?

I have a Task Definition called kafka-zookeeper, it has an Apache Kafka broker and a Zookeeper node in it. Those containers need to communicate with each other (that's easy) and with the kafka and ...
0
votes
1answer
757 views

Can't retrieve instance metadata on AWS Fargate tasks

I have a docker compose configuration that I'm deploying in an ECS Fargate cluster. The tasks are configured with assign_public_ip: ENABLED, and they seem to be getting a public IP, but I'm struggling ...
0
votes
1answer
35 views

Troubleshooting fargate autoscaling

I've set up an AWS Fargate cluster to run a service and autoscale its tasks based on the SQS queue. All great so far. The service has got a desired tasks of 1, but then it never actually launches the ...
1
vote
1answer
180 views

AWS: ECS/ALB setup, converting a docker-compose file, port mapping to mulitple containers

I know this is not an 'original question'. The general topic is covered extensively. Neverthless i'm struggling with my particular setup: I'm trying to basically convert the following docker-compose ...
5
votes
2answers
213 views

How to choose between Elastic Container Service (ECS) or Elastic Container Registry (ECR), Elastic Beanstalk, and Lambda?

Background: I've worked with EC2 and RDS. Recently I received a query from a client in which he wants to develop both mobile and web applications using Amazon Web Services, and need advice on which ...
1
vote
1answer
1k views

Does Amazon manage time synchronization on ECS/Fargate containers?

I'm trying to use NTP to synchronize local time in ECS containers using the ntpdate command, but it gives me this error: ntpdate[770]: Can't adjust the time of day: Operation not permitted ...