From 8168a8f31e738615c1c306b6d43d0d78f6063dba Mon Sep 17 00:00:00 2001 From: Devashish Date: Fri, 26 Jan 2024 12:24:53 -0500 Subject: [PATCH] fix shell session in the docs --- .../templates/hcl_templates/contextual-variables.mdx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/website/content/docs/templates/hcl_templates/contextual-variables.mdx b/website/content/docs/templates/hcl_templates/contextual-variables.mdx index c091313c671..fcf9f9855ec 100644 --- a/website/content/docs/templates/hcl_templates/contextual-variables.mdx +++ b/website/content/docs/templates/hcl_templates/contextual-variables.mdx @@ -147,6 +147,12 @@ source "amazon-ebs" "cannonical-ubuntu-server" { } ``` +```shell-session +==> vanilla.amazon-ebs.cannonical-ubuntu-server: Adding tags to source instance + vanilla.amazon-ebs.cannonical-ubuntu-server: Adding tag: "Name": "Packer Builder" + vanilla.amazon-ebs.cannonical-ubuntu-server: Adding tag: "hcp_iteration_id": "01FHGF3M2AK4TS6PCZES4VX5E7" +``` + # HCP Packer Version Fingerprint If your build is pushing metadata to the HCP Packer registry, this variable is @@ -162,11 +168,10 @@ source "amazon-ebs" "cannonical-ubuntu-server" { } ``` - ```shell-session ==> vanilla.amazon-ebs.cannonical-ubuntu-server: Adding tags to source instance vanilla.amazon-ebs.cannonical-ubuntu-server: Adding tag: "Name": "Packer Builder" - vanilla.amazon-ebs.cannonical-ubuntu-server: Adding tag: "hcp_iteration_id": "01FHGF3M2AK4TS6PCZES4VX5E7" + vanilla.amazon-ebs.cannonical-ubuntu-server: Adding tag: "hcp_version_fingerprint": "01FHGF3M2AK4TS6PCZES4VX5E74tf" ``` You can also add this value to post-processors, for example to add to a manifest file: