github.com/hhrutter/nomad@v0.6.0-rc2.0.20170723054333-80c4b03f0705/terraform/aws/packer/README.md (about)

     1  # Build an Amazon machine image with Packer
     2  
     3  [Packer](https://www.packer.io/intro/index.html) is HashiCorp's open source tool 
     4  for creating identical machine images for multiple platforms from a single 
     5  source configuration. The Terraform templates included in this repo reference a 
     6  publicly avaialble Amazon machine image (AMI) by default. The Packer build 
     7  configuration used to create the public AMI is included [here](./packer.json). 
     8  If you wish to customize it and build your own private AMI, follow the 
     9  instructions below.
    10  
    11  ## Pre-requisites
    12  
    13  See the pre-requisites listed [here](../../README.md). If you did not use the 
    14  included `Vagrantfile` to bootstrap a staging environment, you will need to 
    15  [install Packer](https://www.packer.io/intro/getting-started/install.html).
    16  
    17  Set environment variables for your AWS credentials if you haven't already:
    18  
    19  ```bash
    20  $ export AWS_ACCESS_KEY_ID=[ACCESS_KEY_ID]
    21  $ export AWS_SECRET_ACCESS_KEY=[SECRET_ACCESS_KEY]
    22  ```
    23  
    24  After you make your modifications to `packer.json`, execute the following 
    25  command to build the AMI:
    26  
    27  ```bash
    28  $ packer build packer.json
    29  ```
    30  
    31  Don't forget to copy the AMI ID to your [terraform.tfvars file](../env/us-east/terraform.tfvars).