How to diagnose ECS Fargate task failing to start?

前端 未结 5 2195
生来不讨喜
生来不讨喜 2021-02-19 03:32

I\'m trying to launch/run a Dockerfile on AWS using their ECS service. I can run my docker image locally just fine, but it\'s failing on the Fargate launch type. I\'ve uploaded

5条回答
  •  你的背包
    2021-02-19 04:37

    None of those methods worked for me. What worked was making just one of the services as essential (only the one you are sure is going to work), and then looking at Cloudwatch logs, and eventually even the ECS logs within the EC2 instance.

    # ecs-params.yml
    
    version: 1
    task_definition:
      services:
        myservice1:
           essential: true
        myservice2:
           essential: false
        myservice3:
           essential: false
        myservice4:
           essential: false
        myservice5:
           essential: false
    

    ECS's black box is not very friendly after all.

提交回复
热议问题