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
When running synth with json, the generated terraform code looks correct. I would expect the --hcl version also is able to render metadata as a nested structure.
I think the manifest resource is a special one, since it allows inside manifest anything.
References
No response
Help Wanted
I'm interested in contributing a fix myself
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
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've 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.
Expected Behavior
I got a little cdktf example program:
When running synth with json, the generated terraform code looks correct. I would expect the --hcl version also is able to render metadata as a nested structure.
Actual Behavior
Json result:
HCL version - spot the [Object object] rendering
Steps to Reproduce
Example file:
Run cdktf synth --hcl
Versions
cdktf debug
language: typescript
cdktf-cli: 0.20.4
node: v18.15.0
cdktf: 0.20.4
constructs: 10.3.0
jsii: null
terraform: 1.7.2
arch: x64
os: linux 6.1.0-17-amd64
providers
@cdktf/provider-aws (PREBUILT)
terraform provider version: 5.33.0
prebuilt provider version: 19.2.0
cdktf version: ^0.20.0
@cdktf/provider-kubernetes (PREBUILT)
terraform provider version: 2.25.2
prebuilt provider version: 11.0.0
cdktf version: ^0.20.0
@cdktf/provider-local (PREBUILT)
terraform provider version: 2.4.1
prebuilt provider version: 10.0.0
cdktf version: ^0.20.0
Providers
┌───────────────┬──────────────────┬─────────┬────────────┬────────────────────────────┬─────────────────┐
│ Provider Name │ Provider Version │ CDKTF │ Constraint │ Package Name │ Package Version │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ aws │ 5.33.0 │ ^0.20.0 │ │ @cdktf/provider-aws │ 19.2.0 │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ kubernetes │ 2.25.2 │ ^0.20.0 │ │ @cdktf/provider-kubernetes │ 11.0.0 │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ local │ 2.4.1 │ ^0.20.0 │ │ @cdktf/provider-local │ 10.0.0 │
└───────────────┴──────────────────┴─────────┴────────────┴────────────────────────────┴─────────────────┘
Gist
No response
Possible Solutions
No response
Workarounds
Don't use hcl
Anything Else?
I think the manifest resource is a special one, since it allows inside manifest anything.
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: