37. My First Plan
• When I want to play,
• API bids for a spot instance
• Spot instance boots up and mounts a particular
EBS, via cloudinit script
• Instance registers itself on a DNS to make it easily
accessible from the client
38. But this is difficult
• How do I control this from outside of EC2?
• I want to casually switch the server on and off
52. Other tweaks
• I’m actually using “desired capacity” feature of auto
scaling group to control the number of the instances
• Instance uses dynamic-DNS to bind it’s IP to a fixed
FQDN
• Instance watches the Minecraft directory and
terminates itself (sets capacity to 0) if there are no
activities for an hour
• Anyway the server kills itself after certain hours
53. This technique is also useful
when you have to keep a
non-critical server up