Questions tagged [amazon-ecs]

For questions about Amazon Elastic Container Service (Amazon ECS), a highly scalable, high-performance container orchestration service that supports Docker containers

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

Moving a Laravel Scheduler to Kubernetes with Non-idempotent Cron Jobs

We're in the process of transitioning a Laravel application to Kubernetes using EKS and k9s. For the most part, the application seems to be a good fit. However, we've run into a challenge related to ...
DevWhoops's user avatar
0 votes
1 answer
29 views

Number EC2 instances required for tasks

Let's say I want to place my tasks on EC2 instances of type m6i.large, which has 2 vCPU and 8GB of memory. I have 10 ECS tasks, each requiring 512 mCPU and 512MB of memory. How many EC2 instances do I ...
Code Different's user avatar
0 votes
0 answers
24 views

How to configure Gitlab/Docker/AWS?

I have a Gitlab project, hosted in my company's Gitlab account. I have written an .gitlab-ci.yaml file which gather the image image: python:3.10.9-bullseye, install the python dependencies and run the ...
user39946's user avatar
1 vote
0 answers
21 views

Configure hostname for syslog driver in AWS ECS

Running ECS with an EC2 Container Instance I am using the syslog driver to log to Papertrail The papertrail logs are showing a random IP address as the host; I'd prefer that to be something meaningful....
Andy Davis's user avatar
0 votes
0 answers
120 views

Why can't I get past the credentials page when running Grafana in ECS?

I have been playing for a while with Grafana, installed in Docker on my Mac. That's been working great. My company has a set of Terraform code that lets one easily host an arbitrary Docker image/...
CryptoFool's user avatar
1 vote
1 answer
295 views

I cannot exec into a docker container running in ECS

I'm attempting to login to a container (from ECR) deployed into an AWS ECS cluster. For what it's worth I'm using the docker compose/ecs integration to deploy this cluster. My docker compose file is ...
mwill4321's user avatar
0 votes
0 answers
106 views

is it possible to read dns ip address from resolv.conf with in aws ecs container and use at the server startup?

app architecture: [ The normal request flow happens when an api request triggered from the UI as shown in the above diagram(abstracted few components to talk about specific point) as shown in the ...
anand mohan reddy's user avatar
0 votes
0 answers
23 views

How to migrate VPC in AWS?

We are trying to move towards canary deployments. We want to be able to spin up an entirely new deployment and be able to access the DB, but the DB is privately connected to the existing VPC for ...
Yoker's user avatar
  • 101
0 votes
2 answers
71 views

Docker Compose on AWS

I have no experience with AWS and I would like to know what the best approach is when it comes to embedding an environment built using Docker Compose (a simple application with two services, API and ...
DevOpsBeginner's user avatar
0 votes
1 answer
2k views

Terraform plan does not update AWS Task Definition with last active revision value

I would like your help on a situation that I'm facing with terrafom. My company recently launched a new website whose wordpress is hosted in an AWS ECS container. I had to make some adjustments to the ...
Anaue Curi's user avatar
0 votes
1 answer
143 views

Issue in running docker container on ecs

I am trying to run container on ecs but there is one specific image which is not running and give me error. I can see in docker container ec2 that image is pulled and it tried to run but it gave ...
Kamal Panhwar's user avatar
0 votes
1 answer
165 views

Making blue green deployment work for dependent ECS services

I have two ECS services. UI(http://<LB>/SS_UI/) and API(http://<LB>/webservice/). UI calls API and it's config file will have references to the API e.g. public static springURL = "...
Rohini's user avatar
  • 3
0 votes
1 answer
2k views

AWS ECS Green/Blue with CodePipeline: The ELB could not be updated due to the following error: Primary taskset target group must be behind listener

I've been trying for hours to get a basic CodePipeline up and running with ECS Green/Blue. We're creating a prototype, so everything is in a single repo for now, and the Dockerfile, taskdef.json, ...
Patrick's user avatar
  • 129
1 vote
1 answer
19 views

Proper technologies to create a horizontably scalable index search

I am sorry for the newbye question. Im trying to figure out the best architecture / set of technologies to implement some very specific system: I have several databases indexes (used for searching ...
Pablo Carneiro Elias's user avatar
0 votes
1 answer
108 views

Which container will be targeted when replicas larger than 1

Below is a simplified version of my docker-compose.yml file. I can understand or find any resources to tell me which container of the 5 django replicas the nginx container will target if i reference ...
Felix Eklöf's user avatar
2 votes
3 answers
4k views

Is AWS Fargate suitable for web applications?

I'm making a web-app, I've tried both ECS and EKS at AWS. It's been very comfortable to use Fargate instances instead of EC2. But I'm not sure I understand how to use them since when I count at it, it'...
Felix Eklöf's user avatar
1 vote
1 answer
864 views

Docker compose to ECS, two services in one task

I'm using this method to deploy my docker-compose project to AWS ECS. A simplified version of my docker-compose.yml looks like this: version: '3' services: web: image: .dkr.ecr.eu-west-3....
Felix Eklöf's user avatar
0 votes
1 answer
105 views

AWS ECS vs EKS for hybrid cloud strategy

What can EKS deployment do that ECS deployment can't do? is there any specific circumstances that you have to deploy your application on EKS but not ECS.
Moses Liao GZ's user avatar
1 vote
1 answer
626 views

AWS ELB Application Load balancer, SSL not working

I've setup an "Application Load balancer" in AWS. It has two Listeners, one on HTTP (port 80) and one on HTTPS (port 443). It also has one target group that with only one FARGATE instance ...
Felix Eklöf's user avatar
0 votes
1 answer
378 views

AWS ECS Update with new docker image

I've setup a cluster on AWS ECS, it's hosting nginx and a webapp. I've used these commands to create my resources aws ecr create-repository --repository-name <repo-name> ecs-cli configure --...
Felix Eklöf's user avatar
2 votes
2 answers
2k views

Container Image Promotion across environments in ECR/ECS

We have started doing some initial work on deploying containers on ECS Fargate service. However we are not yet completely figured out how to manage our image promotion across different environments. ...
aashitvyas's user avatar
1 vote
1 answer
31 views

A service by AWS that routes traffic based on simple logic

Background we currently use google distance matrix (GDM) apis a lot to help in core business functions. As the cost of GDM went up, we worked on switching on cheaper alternatives. We decided to use ...
abbood's user avatar
  • 473
1 vote
0 answers
49 views

How does topography affect composite SLA?

I looked at How do you calculate the compound Service Level Agreement (SLA) for cloud services? and am still not sure how topography affects SLA. Suppose a request... passes through one instance of ...
Noobian Noob's user avatar
0 votes
1 answer
796 views

AWS ECS Fargate, auto scaling and load balancer

For a ECS service with launch type "fargate", it is possible to configure a load balancer and auto scaling. I don`t understand, how those two types of scaling work in this case, and how they ...
user1383029's user avatar
3 votes
2 answers
3k views

Why do I need a Nat Gateway for ECS containers using AWSVPC?

So here is a scenario: I have a route table that routes all traffic to the internet gateway, and I have a subnet associated with that route table, which makes it a public subnet. Now I create another ...
mega6382's user avatar
  • 133
3 votes
3 answers
1k views

Accessing a AWS docker instance via localhost only?

Suppose I have two apps launched via the AWS ECS cluster (using Docker containers). I want to expose one app to the world via a public IP (and I do it via the AWS load balancer) but the other one I ...
Aerodynamika's user avatar
3 votes
1 answer
547 views

Get tagging to work on AWS CLI

I am trying to tag commit hash and app version onto the ECS service to make it easier for developers to identify the service with the code. But I get this error + aws ecs tag-resource --resource-...
Moses Liao GZ's user avatar
0 votes
1 answer
195 views

How to set Deployment Type using ECS First Run Wizard

The AWS ECS First Run Wizard provides no option for choosing the 'Deployment type' of the ECS Service: Whereas the ECS Service creation screen does: Why does the First Run Wizard not allow for ...
Jordan's user avatar
  • 101
4 votes
2 answers
472 views

In what way does a new ECS Fargate service not satisfy the task definition's required capabilities?

When creating a new AWS ECS service using a Fargate task, in the AWS Console wizard, it fails with the following error: Failed creation of Service Service creation failed: The specified platform does ...
stoft's user avatar
  • 273
4 votes
1 answer
8k views

Startup of ECS Fargate task fails with ResourceInitializationError mount.nfs4 Connection timed out

When starting up an Amazon ECS task with launch type FARGATE it fails with the following reason: ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: command failed ...
stoft's user avatar
  • 273
2 votes
1 answer
129 views

I want to scale up/down as fast as AWS Lambda but also be able to allocate the vCPU (minimum 8) per task, any advice?

Goal So I'm looking for an AWS product or combination of products to accomplish the following: Ability to do CPU heavy (non-parallel) calculations (min 8 vCPU's per node) Minimum timeout limit of ...
narzero's user avatar
  • 121
-1 votes
1 answer
59 views

AWS organizations and Billing

I was using an AWS account with my credit card info and my personal account. Since I'm learning my way around AWS services I am using free tier as much as I can but I still have some small charges ...
Farzan's user avatar
  • 99
1 vote
1 answer
1k views

RDS DB migrations using ECS and Fargate

I run my app with Docker and ECS. How can I handle database migrations? With fargate there doesn’t seem to be a way to SSH into the container to run any commands so I can’t run my RDS MySQL migrations ...
ajyvardan's user avatar
2 votes
2 answers
1k views

Configure VPC for ECR access

I am creating my infrastructure with Ansible. I create a VPC and an ECS cluster where I use Fargate to run my docker containers. When the tasks are started I am prompted that the task was not able to ...
Kyu96's user avatar
  • 115
6 votes
1 answer
766 views

What's the benefit of using Nginx to serve a Flask API on AWS?

I want to deploy a Flask API on AWS using Docker. A common way seems to be using a combination of Nginx + app server (e.g Gunicorn) + Flask app. The reason to use app server seems obvious to me. ...
Domen P's user avatar
  • 61
1 vote
1 answer
231 views

AWS Production Configuration ASP.NET Core & Docker

So we have an asp.net core application we are hoping to start using with docker and host this all on aws. We have multiple clients that we set up this project for, each with their own configuration ...
Matster2's user avatar
-1 votes
1 answer
6k views

Terraform aws_ecr_repository resource always attempts to destroy

I have been banging my head against this seemingly simple issue for awhile now. I have some Terraform code which sets up an ECR repository, policy and lifecycle policy. provider "aws" { region = "...
jto's user avatar
  • 378
5 votes
2 answers
8k views

Update ECS task definition with new image from ECR

I have an ECS cluster/service/task definition using an image from my ECR repository. Let's say I update the image with a new version, will ECS pick the changes automatically? Do I need to modify the ...
aromero's user avatar
  • 191
1 vote
1 answer
228 views

Why does Docker fail to start on AWS ECS instances. ECS stateful instance fails initialization. ECS stateful instance doesn't join the ECS cluster

The ECS instance fails to join the ECS cluster because it relies on docker to launch its ecs agent. If in this case docker fails to start then the whole process halts. Docker fails to start in AWS ...
eco's user avatar
  • 121
1 vote
0 answers
538 views

Docker image labels in fargate are not applied to containers [closed]

I'm running code in docker containers through AWS ECS on the fargate engine. The problem that I'm running into is that my docker image labels are not being applied to the docker container as I would ...
user2012688's user avatar
4 votes
1 answer
530 views

How to use ecs service dicovery

I'm trying to use amazon service discovery to register a Redis server in order to be reachable by other ECS services in the same cluster. I'm using EC2 to deploy my services not Fargate, so service ...
Mohamed's user avatar
  • 61
5 votes
1 answer
9k views

Using volumes on AWS fargate

I'm new to fargate and even dockers. But I have used dockers for a couple of months. Only now, I am using fargate. I create a particular docker instance as follows: docker run -v localHostFolder/...
Omi's user avatar
  • 151
3 votes
0 answers
3k views

How to override the user for ECS task via CLI? [closed]

I've got a Task Definition with parameters which executes a script using a regular user. I'd like to test the script without changing the Task Definition by overriding the default user which script ...
kenorb's user avatar
  • 7,691
4 votes
2 answers
1k views

Is containerized deployment of jenkins on ECS better than running jenkins inside EC2 instance to secure pipeline information?

I am new to AWS, docker and jenkins. I want to run a jenkins build pipeline and I have tried using following two ways on AWS: Running jenkins inside the EC2 instance following the steps at this AWS ...
bot's user avatar
  • 141
2 votes
1 answer
7k views

How can you pass private environment variables to FARGATE tasks specified from a Docker Compose config

I am using an existing docker-compose.yml to migrate an app to ECS. The config references several $ENV vars which I used to pass in simply as environment variables when running docker-compose up. One ...
scipilot's user avatar
  • 249
4 votes
1 answer
387 views

How do you instruct AWS FARGATE to provision a t2.small via ECS CLI instead of the default micro?

I am trialling AWS ECS for the first time. I've run through the tutorials and now I'm trying to deploy an existing Docker Compose suite which I've been using on Digital Ocean for some time. I have ...
scipilot's user avatar
  • 249
3 votes
2 answers
2k views

ECS auto deploy with ECR

I'm using github, jenkins, aws ECR, aws ECS. I want to deploy automatically when github have new commit. When github have new commit, github sends a event webhook to jenkins, jenkins builds the ...
Yeonsuk Choi's user avatar
2 votes
0 answers
616 views

ECS ELB Health Check Fails [closed]

The health check on our ECS cluster is failing on a service that is using an ELB Network Load Balancer on TCP port (gRPC running in docker alpine). The service is using dynamic port mapping for ...
Odin's user avatar
  • 121
8 votes
2 answers
879 views

Best way to launch 100 identical Docker machines on AWS?

I need to do some large scale testing on a system. The system consists of 2 main parts: Manager and Nodes. There will be only one manager server, but 100 nodes. Both the manager and nodes are Docker ...
Trolley's user avatar
  • 183
3 votes
0 answers
1k views

Can I restart a container within an ECS task group without restarting the entire task? [closed]

I know this isn't possible through the AWS portal, but we have a scenario where we would like to restart a container that may have died, which isn't essential. The scenario is along the lines of ...
MrDuk's user avatar
  • 295