This is the magic of https://hyperbo.la.
Building a deployment of hyperbo.la happens self contained on the target host (Vagrant or AMI builder). Build dependencies are installed with Ansible. Ansible also tries to purge build dependencies from the target host upon a successful deploy.
To deploy to AWS:
- Cut a release
- Build an AMI with packer
- Perform a blue-green deployment with terraform