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.

227 questions
1
vote
0 answers

Send haproxy logs to cloudwatch

We're running an haproxy container on ECS and struggling to setup logging. The ECS container definition contains the log configuration set out in the AWS docs "logConfiguration": { "logDriver": "awslogs", "options": { …
Aidan Ewen
  • 271
  • 1
  • 4
  • 11
1
vote
0 answers

How to specify an iface to map container port on AWS?

I have an EC2 instance with eth0 and eth1 interfaces that runs 2 docker containers. Now I want to map port 5000 of container0 to port 5000 on host to eth0 and port 5000 from container1 to eth1. Is it possible w/o using 3d-party tools like pipework…
1
vote
0 answers

Pinging (ICMP) Docker container on AWS ECS

I've got a script running in a Docker container that listens for ICMP packets. If you ping the container IP address, it picks them up and sends an email. However I'm having a bit of difficulty pinging this container from the outside. The server IP…
StephenC
  • 65
  • 1
  • 1
  • 6
1
vote
0 answers

Auto associate an elastic ip to a ec2 instance started by ecs task

There is a way to auto associate an elasticip to an ec2 instance that was started by an ecs task? I'm trying to create a mongodb cluster with replicaset (3 nodes) and I would like to "plug" a new ec2 instance to my cluster automatically when an ecs…
1
vote
1 answer

Efficiency difference btw AWS EC2 Instance and Container

Amazon provides services to maintain (docker i.e) container services working on EC2 instances. To my knowledge on a simple server, if you have 5 containers running the identical OSs as base, for instance docker doesnt invade separate resources for…
JSBach
  • 111
  • 3
1
vote
1 answer

Usage of swap partition in ec2 container service (AWS, Docker) really not possible?

I'm setting up a gitlab + redmine service for our startup company intern administration and code hosting using preconfigured Docker containers. Doing this was very easy using command line docker on a docker pre configured digitalocean image. It was…
1
vote
1 answer

Why Can't I access my website ,even if 80 port of my ecs server is open?

Os system of ecs server :ubuntu. Os of my computer:win10. I deployed my web project to my ecs server. I could access my project online until I installed the ufw on my ecs server. I configured the firewall using ufw command and the configuration…
Abner
  • 11
  • 3
1
vote
1 answer

ECS restarts due to health_check failure when multiple other requests are slow to return

We noticed that our ECS Fargate backend services restart due to a health check response timeout: (service our-site-com-stack-BackendApiServiceStack...) (port 8000) is unhealthy in (target-group…
Zev
  • 111
  • 4
1
vote
0 answers

Mounting EC2 directory with existing data to Fargate container using EFS

I have an EC2 instance with a huge directory(ex. /large-dir) that containers need to access. Both instance and container share same network and security group. I'm able create and mount an EFS to container as well as add/remove files from the EFS…
Rohini
  • 45
  • 4
1
vote
1 answer

How to authorize only IP from a Fargate ECS service for MongoDB Atlas Cluster

I have an ECS Fargate service mapped to an Application Load Balancer on AWS. In this service, there are several task that are frequently killed and restart. These tasks should be able to connect to a MongoDB Atlas cluster. Which IP should I…
1
vote
3 answers

How to add a domain name to an ECS container (EC2/ECS Service) without a load balancer?

I'm searching for a way to add a domain name to an ECS service (EC2 not Fargate). To be clear I'm looking for a solution which DNS resolves a domain name A or AAAA name (possibly CNAME if it and points to an A or AAAA). It doesn't matter to me…
Philip Couling
  • 1,535
  • 1
  • 17
  • 32
1
vote
1 answer

AWS ECS Fargate, container to container communication

I'm having trouble exposing ports on my ECS Fargate containers. I have applied port mapping on container level for my task definition, like so: On the containers themselves, it looks like there is no specific mapping enabled, or am I reading this…
1
vote
0 answers

How to change the instance count of an ECS EC2-moded cluster?

When you create a cluster, you declare an instance count and that number of EC2 instances are created. When you even tweak the entries in the associated security-group, ECS will re-fill all of its instances in order to adopt the security…
Dustin Oprea
  • 510
  • 1
  • 7
  • 19
1
vote
2 answers

How to get the security-group for an ECS cluster

When creating an EC2-mode ECS cluster, you must assign/create a security group: However, there appears to be no way to retrieve the ARN/name of the security group afterward. UI: CLI: $ aws ecs describe-clusters --clusters extraction { …
Dustin Oprea
  • 510
  • 1
  • 7
  • 19
1
vote
1 answer

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 FROM php:8.0-cli-alpine # Concatenated RUN…