open-nomad/terraform/aws/packer/README.md

19 lines
504 B
Markdown
Raw Normal View History

2017-05-16 04:17:48 +00:00
# Build an Amazon machine image
See the pre-requisites listed [here](../aws/README.md). If not, you will need to [install Packer](https://www.packer.io/intro/getting-started/install.html).
Set environment variables for your AWS credentials:
```bash
$ export AWS_ACCESS_KEY_ID=[ACCESS_KEY_ID]
$ export AWS_SECRET_ACCESS_KEY=[SECRET_ACCESS_KEY]
```
Build your AMI:
```bash
packer build packer.json
```
Don't forget to copy the AMI Id to your [terraform.tfvars file](../env/us-east/terraform.tfvars).