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
1answer
17 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 ...
1
vote
1answer
53 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 ...
3
votes
3answers
81 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 ...
0
votes
0answers
30 views

How to reference a state file in one module from another, when using dynamic names

I have a Terraform/Terragrunt project to automate the creation of and ECR repository and several Fargate instances (test, uat, production) to host images from that repository (depending on how far ...
2
votes
1answer
56 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-...
0
votes
1answer
18 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 ...
4
votes
2answers
153 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 ...
4
votes
1answer
2k 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 ...
2
votes
1answer
24 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 ...
-1
votes
1answer
22 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 ...
1
vote
1answer
188 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 ...
2
votes
2answers
450 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 ...
0
votes
0answers
190 views

Problem deploying Docker Container from ECR on EC2 with Ansible

So, This question is tightly related to my previous one, which turned out to be a consequence of a different issue. To ensure every confusion is cleared up, I decided it is better to make a new ...
1
vote
0answers
196 views

AWS ECS Overwrites Docker Entrypoint Command?

So I've built a docker image locally with packer. When running the image locally, everything is fine. But for my deployment I've uploaded the docker image to the ECR and started it on ECS. However ...
1
vote
0answers
54 views

How to debug the NGINX 302 in AWS ECS? For valid location paths tested in docker-compose

I've got a project that's been deployed to AWS ECS through Cloudformation, that when accessed returns a 404 to at least one* location /route defined in the NGINX conf file. In the development ...
4
votes
1answer
247 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. ...
1
vote
1answer
88 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 ...
-1
votes
1answer
1k 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 = "...
1
vote
2answers
2k 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 ...
1
vote
1answer
98 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 ...
1
vote
0answers
115 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 ...
3
votes
1answer
104 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 ...
3
votes
1answer
6k 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/...
2
votes
0answers
1k 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 ...
4
votes
2answers
615 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 ...
2
votes
1answer
4k 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 ...
3
votes
1answer
227 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 ...
2
votes
2answers
1k 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 ...
2
votes
0answers
496 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 ...
7
votes
2answers
423 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 ...
2
votes
0answers
558 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 ...
3
votes
1answer
424 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....
-1
votes
1answer
55 views

AWS: Fargate charging model

According to Amazon's official documentation, For Amazon ECS, AWS Fargate pricing is calculated based on the vCPU and memory resources used from the time you start to download your container ...
7
votes
1answer
761 views

AWS ECS/EKS: EC2 vs Fargate mode

Amazon offers the option of launching their container management services ECS and EKS in two modes: EC2 and Fargate. In the former, normal VMs (EC2 instances) are used and ECS or EKS (depending on ...
3
votes
1answer
71 views

Is running load balanced autoscale apps cheaper on AWS Kubernetes than just using EC2 resources?

We're running like 100+ servers on AWS EC2 with like 20 microservices all load balanced and autoscaled with 2 to 3 instances. The cost has become....very significant. I'm wondering if migrating ...
7
votes
3answers
648 views

How to deploy multiple dependent micro services

We want to deploy multiple microservices on AWS ECS. The issue that we need to solve is how to deploy them in an atomic way: Let says we have the front-end services which requires the user service ...
3
votes
1answer
5k views

How can I push multiple containers, created with docker-compose, to a registry

I am using Jenkins pipeline and run a shell command to bring up my linked containers for testing. Once the testing is complete, I want to push the containers to a registry (I would prefer AWS ERC, but ...
1
vote
0answers
198 views

Why does Jenkins' Amazon EC2 Plugin not terminate some VMs when they are idle for X minutes on AWS US-east-1?

| Product | Version | |:-----------|--------:| | EC2 plugin | X | | Jenkins | 2.190.1 | Looking for help troubleshooting an intermittent issue; We run an Ubuntu version of Jenkins on AWS ...
1
vote
0answers
138 views

Setting ECS Environment Variables per Serivce [closed]

I have a task-definition which invokes a script that uses environment variables. When I start a new task with this definition I have the option of setting environment variables. However, I need this ...
3
votes
2answers
4k views

How to move EC2 instance to another ECS cluster

Assume I have two clusters devcluster and qacluster on ECS. How to remove an EC2 instance (ecs-optimized amazon-linux) from qacluster and add to devcluster?
1
vote
1answer
57 views

Docker image registries

We are using AWS EC2 container services and we are using Amazon container registry but the problem with container registry is that it's only available in one region although it's have URI but is ...
1
vote
1answer
367 views

AWS Task definition memory for Ubuntu docker image

We are using alpine image on AWS ecs which work fine on just 100mb memory in task definition. Now we need ubuntu image which size is more then 180mb while alpine is just 5mb. I want to know that we ...
3
votes
2answers
1k views

What is the best way to find the Auto Scaling Group of an ECS cluster?

We are looking to inspect the ASG EC2 CloudWatch metrics such as CPU and Memory, since it includes an aggregate of all the ASG instances. Given that we know the ECS cluster, or the ECS service name. ...
6
votes
2answers
1k views

Amazon ECS Basic Definitions and Terms

I'm a beginner starting to learn about Amazon EC2 and I want to get clear on the following terms, if anyone can supply a basic definition and perhaps an example to tie them together that would be ...
3
votes
1answer
8k views

How to get environment variables in ECS container?

What AWS CLI command should I be using to access the environment variables in an AWS ECS cluster's task's container? I've seen describe-cluster, list-tasks, describe-tasks, describe-container-...
14
votes
3answers
949 views

Simple CI/CD Containers in AWS

I am using AWS Code Pipeline, Code Build to create a new Docker container and push it to ECR. My application is a simple straight-forward single-container based. What would be less friction approach ...