-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
dynamic-blocks: An argument named "key" is not expected here #8967
Comments
Hey there, thanks for reaching out! We'll try to take a look for the next release. |
Hello there ! I first implemented it using the |
Ah scratch that, it's a little more complex. So when I implemented #8889 to allow to use tags/filters/subnetfilters key value maps I used the key " But what Terraform providers do is using the naming convention of the upstream service. For example for the tags aws uses We'll soon work on fixing this to have this behaviour, note that this will be a breaking change. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Overview of the Issue
According to the documentation, I have to use
key
andvalue
in thecontent
block but it doesn't work:It seems this default schema is applied:
packer/hcl2template/types.variables.go
Line 295 in 79f1fab
I replaced in my configuration
key
toname
as a workaround and everything starts working but this is implicit behavior.Reproduction Steps
Run build with dynamic block from the documentation.
Packer version
1.5.5
The text was updated successfully, but these errors were encountered: