vatertime / minecraft-spot-pricing

Cloudformation template to deploy a Minecraft server
MIT License
140 stars 84 forks source link

Stack gets stuck on CREATE_IN_PROGRESS #4

Closed caycehouse closed 3 years ago

caycehouse commented 3 years ago

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.

caycehouse commented 3 years ago

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

anutting commented 3 years ago

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

vatertime commented 3 years ago

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