open-nomad/terraform/aws/packer
2017-06-26 10:56:50 -07:00
..
packer.json
README.md

Build an Amazon machine image with Packer

Packer is HashiCorp's open source tool for creating identical machine images for multiple platforms from a single source configuration. The Terraform templates included in this repo reference a publicly avaialble Amazon machine image (AMI) by default. The Packer build configuration used to create the public AMI is included here. If you wish to customize it and build your own private AMI, follow the instructions below.

Pre-requisites

See the pre-requisites listed here. If you did not use the included Vagrantfile to bootstrap a staging environment, you will need to install Packer.

Set environment variables for your AWS credentials if you haven't already:

$ export AWS_ACCESS_KEY_ID=[ACCESS_KEY_ID]
$ export AWS_SECRET_ACCESS_KEY=[SECRET_ACCESS_KEY]

After you make your modifications to packer.json, execute the following command to build the AMI:

$ packer build packer.json

Don't forget to copy the AMI ID to your terraform.tfvars file.