Create AWS AMI with packer
Currently installed tooling
What this project is used for
- Create
AWS AMI
on-demand self-hosted AWS EC2 runner forGitHub Actions - Create
AWS AMI
for general purpose
brew tap hashicorp/tap
brew install hashicorp/tap/packer
brew install packer
brew install ansible
aws-vault exec $AWS_PROFILE -- packer init aws-ubuntu.pkr.hcl
aws-vault exec $AWS_PROFILE -- packer build aws-ubuntu.pkr.hcl
vagrant provision
vagrant up
vagrant status
vagrant halt packer
vagrant ssh packer
vagrant destroy packer --force
The action can start the EC2 runner in any subnet of your VPC that you need - public or private. In this way, you can easily access any private resources in your VPC from your GitHub Actions workflow.
For example, you can access your database in the private subnet to run the database migration.