Create AWS AMI with packer
Currently installed tooling
What this project is used for
- Create
AWS AMIon-demand self-hosted AWS EC2 runner forGitHub Actions - Create
AWS AMIfor general purpose
brew tap hashicorp/tap
brew install hashicorp/tap/packer
brew install packer
brew install ansibleaws-vault exec $AWS_PROFILE -- packer init aws-ubuntu.pkr.hcl
aws-vault exec $AWS_PROFILE -- packer build aws-ubuntu.pkr.hclvagrant provision
vagrant up
vagrant status
vagrant halt packer
vagrant ssh packer
vagrant destroy packer --forceThe 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.