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
-1
votes
1answer
18 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
12 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
138 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
40 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
43 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 ...
0
votes
0answers
17 views

Configuring Docker containers running Jira to communicate with one another over multicast

I am working on building out an Atlassian Jira Data Center deployment using Docker containers (provided by Atlassian) and running on ECS. My current challenge is that Jira uses Ehcache to sync ...
1
vote
0answers
33 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 ...
0
votes
0answers
194 views

ECS Fargate Replica Tasks Always Fail (CannotPullContainerError)

We have a bunch of AWS Services that we build using CloudFormation. We get intermittent connectivity issues (i.e. CannotPullContainerError) to our Docker Hub private repo, but the first task in each ...
3
votes
1answer
76 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
39 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 ...
0
votes
0answers
14 views

How to provision side containers for jenkins using ECS?

We are successfully using the Jenkins ECS plugin to run many of our builds and tests. However, we have some jobs which require unit tests using mocks, which are often implemented using docker-compose ...
-2
votes
1answer
451 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 = "...
0
votes
1answer
972 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
58 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
75 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
66 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 ...
1
vote
1answer
4k views

Using volumes on AWS fargate

I am 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/...
1
vote
0answers
815 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
431 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
3k 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
186 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
733 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
459 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
236 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
398 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
371 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
50 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 ...
6
votes
1answer
571 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
70 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
481 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
4k 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
107 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
102 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
3k 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
56 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
358 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
1answer
853 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
6k 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
899 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 ...