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
It seems you're trying to assign a map/object type to the data attribute. From what I know, you'll need to use the lower-level API, hclsyntax, and work with tokens to achieve this. However, if you're setting the attribute like this: config.hcl = data.template_file.vault_config.rendered inside a block, it’s simpler, and you can keep using hclwrite.
Building a map/object and assigning it to an attribute
Start by using hclwrite to create a new empty file and build up the tokens for config.hcl and its value:
If you print the dataTokens, you’ll see config.hcl = data.template_file.vault_config.rendered.
Next, we’ll set the data attribute and add the assignment for a map/object value by setting the equal token (=) and wrapping config.hcl with the opening ({) and closing brace token (}).
Hi, Is there any guide on generating something like the following in go?
Attempt
However this generates the following (with quotes)
The text was updated successfully, but these errors were encountered: