Skip to content

Minecraft server via ECS with spot instances configured via CDK

License

Notifications You must be signed in to change notification settings

dave-burke/cdk-minecraft

Minecraft Spot Pricing Server with AWS CDK

This is a version of minecraft-spot-pricing converted to CDK code.

There is a construct (lib/cdk-minecraft-spot-pricing.ts) that I may publish as an independent NPM module in the future, and a stack (lib/cdk-minecraft-stack) that uses the construct and adds extra autoscaling rules to shut down the server when not in use.

Example .env file

DEBUG=true
TIMEZONE_OFFSET=-5
CONTAINER_ENV={"DIFFICULTY":"normal"}
HOSTED_ZONE_ID="ABC123"
DNS_RECORD_NAME="minecraft.example.com"
EC2_KEY_NAME="my-key"

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

Minecraft server via ECS with spot instances configured via CDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published