Example Packer Template to build a RHEL8\CentOS8 (Based) AMI in AWS
- Provisions Rhel8 AMI in AWS
- Includes Podman/Docker
- SSM Agent, awscli etc...
Name | Version |
---|---|
packer | ~> 1.0 |
Run a test build (No resulting AMI)
packer build -var "run_test_build=true" .
Run build to create an AMI
packer build .
Debug
PACKER_LOG=TRACE packer build -var "run_test_build=false" .
- Configure to use SSM session instead of ssh for provisioning
- Encrypt with KMS