- Used Ubuntu 24.04 LTS as the source image
- AMI has Jenkins fully configured starting from plugin installation to automated user creation via Jenkins Configuration as Code
- Used Caddy as reverse proxy for Jenkins instance and set them up to get SSL certificate from Let's Encrypt on startup.
- This Packer AMI is built via GitHub Actions workflow which also format checks the packer template
- Builds image in default AWS VPC with OS - Ubuntu, Volume Size - 8GB, Device Name - gp2
- Installs dependencies via shell script
packer init
: Installs all packer plugins mentioned in the config templatepacker fmt
: Formats templatepacker validate
: Validates the templatepacker build <filename>.pkr.hcl
: Builds the custom AMI
---testing --testing --testing