Category "amazon-ecs"

Access a private docker registry with ECS Fargate and Terraform

I need my ECS Task definition to contain the credentials of my private Docker registry, using if possible a simple token, or, a user:password. Below is my code:

AWS ECS Cli vs Docker Context ECS Cli

I need to deploy an application in AWS using ECS Fargate. This application has multiple services and a docker-compose file. I see there are two main ways to do

Providing access to EFS from ECS task

I am struggling to get an ECS task to be able to see an EFS volume. The terraform config is: EFS DEFINITION resource "aws_efs_file_system" "persistent" { encryp

Depends on Fargate ECS

I have container A this container holds my broker service that delivers messages and creates a socket that my other services connect to and then send messages t

ECS - target type ip is incompatible with the bridge network mode specified in the task definition

Problem Getting target type ip,which is incompatible with the bridge network mode error when trying to create an ECS service with an existing NLB whose target

Terraform ECS Task Definition jsonencode issue

I get this error when applying terraform. It's clearly something wrong with my env_Vars. I've tried making name and value in quotes or without. Error: ECS Task

Error connecting to EFS mount from AWS ECS fargate container?

I'm trying to setup via CloudFormation an EFS mount for self-hosted Prometheus. Below is the CloudFormation for my setup: Resources: ServiceSecurityGroup:

ECS Task Definition - When overriding ENTRYPOINT, Docker image's CMD is dropped

I have a Docker Image built with the following CMD # Dockerfile ... CMD ["nginx", "-g", "daemon off;"] When my task definition does not include entryPoint or c

RDS Proxy IAM role unable to retrieve credentials from secret

I am trying to implement a proxy to our Aurora RDS instance, but having difficulty getting the IAM access to work properly. We have a microservice in an ECS con

ECS TASK alerts on OutOfMemory

If a ECS container is out of memory or is in hung state or stopped thought is gets restarted. is there a way to I se up alarms on top of that using cloudwatch o

Invalid policy role JSON

I am following this tutorial: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-cli-tutorial-fargate.html the json for a policy is as shown: {

Docker Volumes in ECS -- how to connect nginx with php-fpm using unix socket

I tried to make the construction like figure1. figure1 In the local environment, I can access http://127.0.0.1 after running docker-compose up -d --build. And I

Calling Service A from B is giving connecton refused using ECS CLI with docker compose. What might be the reason?

I have setup an ECS Cluster and I'm using ECS CLI to create services/tasks from my existing docker-compose file. This is how my compose file looks like: version

Deploy a FargateService to an ECS that's living within a different Stack (preoject)

1- I have a project core-infra that encapasses all the core infra related compoents (VPCs, Subnets, ECS Cluster...etc) 2- I have microservice projects with inde

Application Load Balancer Target Group Register/Deregister Infinite Loop

Setup Security Groups ALB (inbound rules) HTTPS:443 from 0.0.0.0/0 & ::/0 HTTP:80 from 0.0.0.0/0 & ::/0 Cluster (inbound rules) All traffic from ALB se

Aws ecs fargate ResourceInitializationError: unable to pull secrets or registry auth

I am trying to run a private repository on aws-ecs-fargate-1.4.0 platform. For private repository authentication, I have followed the docs and it was working w

Setting URL of ECS container health check

I have a docker image I want to run on AWS ECS. This is a API I want to use from other applications. I have set up the task definition, however it runs for a fe

Docker : compose file is incompatible with Amazon ECS

I am trying to deploy my docker image in AWS ECS. I have created the ECR repository and done all required steps till pushing the image to ECS. My docker-compose

Dynamic Stage Routing / Multi-Cluster Setup with Fargate

I'm having a fargate cluster with a service having two containers: a container running nginx for terminating mTLS (it accepts a defined list of CAs) and forwar

ECS Service Discovery from other service outside VPC

Can one service in ECS cluster c1 can call another service in cluster c2 using ECS service discovery (https://docs.aws.amazon.com/AmazonECS/latest/developergui