-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs for the target_region
block are confusing and do not provide an easy to find example
#444
Comments
Hey @jsloan117 I think it's just poorly documented on our part rather than an actual bug. We should probably add an example to the TargetRegion section to make this clearer, but if you check the Each
I think us calling the previous replicated_regions field deprecated was a bit hasty, and we have no immediate plans to remove it. I will keep this ticket open to indicate we should improve these docs, but can you confirm for me that you're able to set the target_region block following that example? |
@JenGoldstrich - thanks for the quick response! That worked! The section you linked to was fairly straightforward, in my opinion, and it was going to be my next thing to try when I had time. My confusion came from the section below.
I don't think I fully understand the difference between With the above-linked text, I concluded that it was a "cleaner/neater" way to write the syntax, which I drew the wrong conclusion about. Out of curiosity and a little help from Copilot - would either of the snippets work?
|
Yeah I guess target_regions in that block is a typo, I think we should fix that and include an example in that block to make it clearer I agree, I will leave this ticket open to track fixing this in the docs. Neither of those code snippets will work as I understand it, target_region is not an array of strings, its a block definition, the only way to define them is how I did above, if you want to pass in a list of regions you can use |
target_region
block are confusing and do not provide an easy to find example.
target_region
block are confusing and do not provide an easy to find example.target_region
block are confusing and do not provide an easy to find example
Overview of the Issue
After reviewing the documentation, it appears that
replication_regions
is deprecated in favor oftarget_region(s)
.Reproduction Steps
Replace
replication_regions
withtarget_regions
block.Plugin and Packer version
Packer version: 1.11.2
Plugin version: v2.1.8
Simplified Packer Buildfile
NA
Operating system and Environment details
Building RHEL 8 image, the build server is Ubuntu 22.04 both are x64.
Log Fragments and crash.log files
I followed https://developer.hashicorp.com/packer/integrations/hashicorp/azure/latest/components/builder/arm#target-regions and searched the repo for references like
packer-plugin-azure/.web-docs/components/builder/chroot/README.md
Line 228 in 93909bc
The text was updated successfully, but these errors were encountered: