vatertime/minecraft-spot-pricing

Stack gets stuck on CREATE_IN_PROGRESS

caycehouse opened this issue · 3 comments

When I try to launch this the ECS service is stuck on CREATE_IN_PROGRESS. I have made sure that the ec2 instance is created, and that my spot pricing is above the average for my selected region. The Error I get is “ClientException: The referenced cluster was inactive.“ I have tried deleting and recreating the Cloud Formation stack but get the same results.

I got it to deploy successfully by moving the echo cluster line to the top of the script. Otherwise the ec2 instance booted and tried to bind to the default ecs cluster.

#!/bin/bash -xe echo ECS_CLUSTER=${EcsCluster} >> /etc/ecs/ecs.config yum install -y amazon-efs-utils mkdir /opt/minecraft mount -t efs ${Efs}:/ /opt/minecraft chown 845:845 /opt/minecraft

I am also encountering this issue. Thanks for this fix, worked great!

I'll make the change to master, thanks for the heads up