We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to generate the following code
inputs = { someKey = dependency.outputs.someKey anotherKey = dependency.outputs.anotherKey yetAnotherKey = dependency.outputs.yetAnotherKey }
What's the best way to do that?
Thank you
The text was updated successfully, but these errors were encountered:
According to this PR
I achieved the above config by doing this
rootBody.SetAttributeRaw("inputs", hclwrite.TokensForObject([]hclwrite.ObjectAttrTokens{ { Name: hclwrite.TokensForTraversal(hcl.Traversal{ hcl.TraverseRoot{Name: "someKey"}, }), Value: hclwrite.TokensForTraversal(hcl.Traversal{ hcl.TraverseRoot{Name: "dependency"}, hcl.TraverseAttr{Name: "cluster"}, hcl.TraverseAttr{Name: "outputs"}, hcl.TraverseAttr{Name: "someKey"}, }), }, { Name: hclwrite.TokensForTraversal(hcl.Traversal{ hcl.TraverseRoot{Name: "anotherKey"}, }), Value: hclwrite.TokensForTraversal(hcl.Traversal{ hcl.TraverseRoot{Name: "dependency"}, hcl.TraverseAttr{Name: "cluster"}, hcl.TraverseAttr{Name: "outputs"}, hcl.TraverseAttr{Name: "anotherKey"}, }), }, }))
P.S: today, that PR is merged to main but not yet released
main
Sorry, something went wrong.
No branches or pull requests
I'm trying to generate the following code
What's the best way to do that?
Thank you
The text was updated successfully, but these errors were encountered: