This repo creates custom AMI to host Jenkins using Packer
Features:
- Use Ubuntu 24.04 LTS as source image1
(in local test, in packer
folder, run export AWS_PROFILE=ghactions
before initiation)(no space around '='!!)
packer fmt -var-file=jenkins-ami.pkrvars.hcl jenkins-ami.pkr.hcl
packer init -var-file=jenkins-ami.pkrvars.hcl jenkins-ami.pkr.hcl
packer validate -var-file=jenkins-ami.pkrvars.hcl jenkins-ami.pkr.hcl
packer build -var-file=jenkins-ami.pkrvars.hcl jenkins-ami.pkr.hcl