Skip to main content

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
14 views

AWS TargetGroup running on port 80 as well as the dynamic port, how to remove port 80?

I am setting up an AWS CloudFormation stack that spins up an ECS cluster. It has an LB that routes traffic to TargetGroups on the cluster. The TaskDefinitions have HostPort:0 (dynamically assigned) ...
devlop's user avatar
  • 101
0 votes
0 answers
62 views

Create an S3 blobstore on Nexus fails ("The S3 bucket exists but you are not the owner")

Before mentioning my problem, I want to inform you that I'm using terraform and having nexus container running on EC2 orchestrated by Amazon ECS. Here is the objective: I want to create an S3 ...
zonix devWeb's user avatar
0 votes
0 answers
13 views

Question about AWS Prometheus tutorial

I'm following this cool example on how to run a container and monitor it CloudWatch with Prometheus - Monitor and scale your Amazon ECS on AWS Fargate application using Prometheus metrics. All my ...
Chris F's user avatar
  • 443
1 vote
1 answer
848 views

Permission Issue when creating an ECS Service with CloudFormation

I am trying to create an ECS service in a cloud formation json. Here is the role I created (I know that it has additional permissions, I am using one role for now and will break them up later) "...
Harry's user avatar
  • 11
0 votes
0 answers
229 views

Alternatives to 'Docker Compose's integration for ECS and ACI will be retired in November 2023'

We are currently using 'docker compose' to deploy our applications on ECS, and during its usage, we have noticed the following notice: 'Docker Compose's integration for ECS and ACI will be retired in ...
Xeven's user avatar
  • 1
0 votes
0 answers
11 views

How to remove the Kubernetes finaliser in PV object?

I am trying to delete the finalisers in the PV by issuing kubectl patch command and it deletes partially leaving behind Kubernetes.io/pv-protection Described the PVC and able to see two entries ...
user2586964's user avatar
0 votes
0 answers
62 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
123 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
2 votes
1 answer
807 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
2 answers
92 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
1 vote
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
194 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
215 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
25 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
132 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
4 votes
3 answers
6k 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
1k 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
117 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
937 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
801 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
3 votes
2 answers
3k 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
33 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
0 votes
1 answer
1k 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
4k 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
714 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
243 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
490 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
9k 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
154 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
62 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
  • 145
6 votes
1 answer
829 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
250 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
6 votes
2 answers
10k 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
  • 211
1 vote
1 answer
280 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
4 votes
1 answer
554 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
10k 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,921
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
459 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
630 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
971 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
3 votes
1 answer
633 views

Blue/green deployment with micro services and DNS

Currently, we have on our test environment an ECS Cluster with micro services deployed. All micro services are talking to each other through Route53 DNS CNAMEs like service1.company.com, service2....
Kaymaz's user avatar
  • 355