open-nomad/terraform/aws/packer
Rob Genova 7f1c84c59c slight tweak to Packer README 2017-06-25 11:54:29 -07:00
..
README.md slight tweak to Packer README 2017-06-25 11:54:29 -07:00
packer.json refactor Terraform module, Packer config; bump tool version #s in Vagrantfile 2017-06-24 16:24:24 -07:00

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.