You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat /tmp/attr.hcl
# This resource is pasted directly from the hcledit readme
resource "foo" "bar" {
attr1 = "val1"
nested {
attr2 = "val2"
}
}
# And I expect this module to work with nesting the same way as the above resource
module "foo" {
nested = {
attr2 = "val2"
}
}
Retrieving a nested value from the resource works as expected:
$ cat /tmp/attr.hcl | hcledit attribute get resource.foo.bar.nested.attr2
"val2"
But retrieving a similary nested value from the module doesn't work:
$ cat /tmp/attr.hcl | hcledit attribute get module.foo.nested.attr2
[no output at all]
Note that I can get the nested map, I just can't seem to recurse inside it:
made a comment with a workaround for this kind of functionality (dont believe it will work with nested blocks, but does work with nested attributes/objects/maps)
This example file:
Retrieving a nested value from the resource works as expected:
But retrieving a similary nested value from the module doesn't work:
Note that I can get the
nested
map, I just can't seem to recurse inside it:The text was updated successfully, but these errors were encountered: