-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Cannot use type any in object() #24801
Comments
@yves-vogl thanks for reporting this! I have reproduced a simplified version of this: variable "example" {
type = map(object(
{
pgp_public_key = any
}
))
default = {
"A" = {
pgp_public_key = "758EE76C"
},
"B" = {
pgp_public_key = null
}
}
} This produces:
Can you help me understand how much impact this is having on you, how big of a problem it's causing for you? We're planning on doing a big sweep later to fix a bunch of panics, but are currently pretty focused on 0.13 feature work so I want to understand the impact for you in order to prioritize our work. |
Since I can't have defaults on an object in a list, I've got:
I pass it:
|
I wonder if this is the same issue as #23508. Linking for future review. |
This has been fixed in the upstream library (zclconf/go-cty#47), and the fix will be included in the upcoming 0.13 release. Thank you for reporting it! |
Sorry for delayed answer. It worked around this issue but are happy that it's fixed. Thank you! |
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. |
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
Should not crash.
Actual Behavior
Crashed.
Steps to Reproduce
Additional Context
This does not crash.
References
N/A
The text was updated successfully, but these errors were encountered: