Skip to content

Conversation

@arnej27959
Copy link

  • Add required default parameter to lookup function example
  • Clarify that lookup function requires a default value
  • Add example demonstrating modern HCL2 map access syntax
  • Mention error behavior when lookup fails without default

Description

I tried using a variable of type map(string) in packer following this guide:
https://developer.hashicorp.com/packer/guides/hcl/variables
This failed initially because the example didn't show the required default value.

- Add required default parameter to lookup function example
- Clarify that lookup function requires a default value
- Add example demonstrating modern HCL2 map access syntax
- Mention error behavior when lookup fails without default
@arnej27959 arnej27959 requested review from a team as code owners December 24, 2025 12:46
@hashicorp-cla-app
Copy link

hashicorp-cla-app bot commented Dec 24, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 24, 2025

Vercel Previews Deployed

Name Status Preview Updated (UTC)
Dev Portal ✅ Ready (Inspect) Visit Preview Wed Dec 24 13:10:09 UTC 2025
Unified Docs API ✅ Ready (Inspect) Visit Preview Wed Dec 24 13:06:04 UTC 2025

@github-actions
Copy link
Contributor

Broken Link Checker

No broken links found! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant