- download and install packer from https://www.packer.io/downloads
- Checkout code and save to local directory
- download latest Ubuntu edition from Minecraft https://www.minecraft.net/en-us/download/server/bedrock, save in this directory. E.g bedrock-server-1.16.40.02.zip
- Setup AWS account and create access/secret key
- run validation code
packer validate bedrock.json
- run build, this will overwrite any existing ami with this name
packer build \
-var 'aws_access_key=<AWS_ACCESS_KEY>' \
-var 'aws_secret_key=<AWS_SECRET_KEY>' \
-var 'bedrock_zip_file=bedrock-server-1.16.40.02.zip' \
bedrock.json
- aws_ami_name=minecraft-bedrock-1-16-40-02 , defaults to minecraft-bedrock
- ubuntu_ami_base_image_name=ubuntu/images/ubuntu-focal-20.04-amd64-server- , defaults to ubuntu/images/ubuntu-bionic-18.04-amd64-server-