-
Notifications
You must be signed in to change notification settings - Fork 582
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
Issue parsing HCL object within a block #672
Comments
Hi @raz-bn, The "hcl" struct tags only interact with HCL blocks and their direct attributes. From HCL's perspective that
type Versioning struct {
Enabled bool `cty:"enabled"`
} |
Hey, I am trying to parse terraform HCL into Golang struct and im facing issues when trying to parse an object inside a Module block. this it the example I am trying to make work:
Terraform file:
Golang struct:
I am being able to parse both of
source
andbucket
attributes, however, no matter what I try I was not able to parse theversioning
attribute.The text was updated successfully, but these errors were encountered: