Packer Template for building an Amazon Linux 2 AMI with WireGuard
This template was written using HCL2 which only supported in Packer v1.7.0+
. As a result, you will need a recent version for Packer and run:
packer build .
# To override variables
packer build -var-file="overrides.pkrvars.hcl" .
Alternatively, you can run it using hashicrop/packer
docker image:
docker run --rm -v ${PWD}:/packer -w /packer hashicorp/packer build .