docker compose up error: AppService CREATE FAIL (Resource creation cancelled)

0

Hi, I am trying to deploy a simple docker-compose.yaml:

version: '3.8'
   x-aws-vpc: vpc-3a8b0000
   x-aws-cluster: ZenTo
   x-aws-loadbalancer: "testecscli"
   x-aws-subnets:
        - subnet-9d0adbe6
        - subnet-093fd744
services:
  app:
    container_name: nginx
    ports:
      - "80:80"
    image: nginx

I am running the command "Docker compose up" from PowerShell elevated against the ECS context. The Load balancer is already created as well as the fargate cluster. Items star being created but when it gets to creating AppService, it fails and rollbacks the whole stack. CloudFormation output: Enter image description here

Suggestions to resolve this would be appriciated. Thanks

asked a year ago210 views
1 Answer
0

After 3 days of trying different things, I have found a solution, or rather a workaround. The issue seem to happen on certain regions. Same docker-compose.yaml fails in eu-west-2 and us-east-1, but works fine in us-east-2. Only change in the docker-compose is that I removed x-aws-vpc, aws-loadbalancer and x-aws-cluster, since us-east-1 and us-east-2 have a default VPC. I don't know if it is a bug or if my VPC is missing something? When it works, it is great. It creates everything automatically. But when it doesn't work, there isn't much info why it is failing. I hope this post helps others.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions