From a722e52aa0a3b4da89b9a67e638b32f0828a5e9d Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Wed, 2 Oct 2024 00:22:26 -0400 Subject: [PATCH] Update the project README Update to reflect the conversion of the Packer configuration to HCL2. --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d3d9e44d..7b27e6a8 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,21 @@ The AMIs are built like so: ```console cd packer ansible-galaxy install --role-file ansible/requirements.yml -packer build bastion.json -packer build dashboard.json -packer build docker.json -packer build mongo.json -packer build nessus.json -packer build nmap.json -packer build reporter.json +packer init . +packer build . ``` If building a non-default image (for testing as an example) the prefix for the created AMI can be changed from the default value of `cyhy` like so: ```console -packer build -var ami_prefix=testing bastion.json +packer build -var ami_prefix=testing -only amazon-ebs.bastion . +``` + +You can also use a `.pkrvars.hcl` file to set any variables. For example: + +```hcl +ami_prefix = "testing" ``` Also note that