Using Packer and Ansible to repackage custom AWS EC2 AMIs.
Put this together as I didn't really find great examples for doing exactly what I wanted to. Hopefully this can help others.
- cp aws-creds-example.json aws-creds.json
- replace values in aws-creds.json
- packer build -var-file=aws-creds.json templates/base.json
- profit
note: you may need to remove the subnet_id and the aws_vpc_id