Skip to content
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

Tokens are passed as strings, with escape character #192

Open
1 task
yfried opened this issue Jul 13, 2023 · 0 comments
Open
1 task

Tokens are passed as strings, with escape character #192

yfried opened this issue Jul 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yfried
Copy link

yfried commented Jul 13, 2023

Description

When passing the output of another cdktf resource to cdktf-cdk8s, the references are escaped ($$ instead of $) and so cannot be resolved in runtime

see

https://gist.github.com/yfried/90b81f9f030fe49d5c6e95d20c051e37#file-cdktf-json-L65
https://gist.github.com/yfried/90b81f9f030fe49d5c6e95d20c051e37#file-cdktf-json-L145

Versions

language: typescript
cdktf-cli: 0.17.1
node: v18.16.1
cdktf: 0.17.1
constructs: 10.2.69
jsii: null
terraform: 1.5.3
arch: x64
os: darwin 22.5.0

Providers

┌───────────────┬──────────────────┬─────────┬────────────┬────────────────────────────┬─────────────────┐
│ Provider Name │ Provider Version │ CDKTF   │ Constraint │ Package Name               │ Package Version │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ kubernetes    │ 2.21.1           │ ^0.17.0 │            │ @cdktf/provider-kubernetes │ 7.0.0           │
├───────────────┼──────────────────┼─────────┼────────────┼────────────────────────────┼─────────────────┤
│ random        │ 3.5.1            │ ^0.17.0 │            │ @cdktf/provider-random     │ 8.0.0           │
└───────────────┴──────────────────┴─────────┴────────────┴────────────────────────────┴─────────────────┘

Gist

https://gist.github.com/yfried/90b81f9f030fe49d5c6e95d20c051e37

Possible Solutions

No response

Workarounds

No response

Anything Else?

No response

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
@yfried yfried added the bug Something isn't working label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant