Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Tokens are passed as strings, with escape character #192

Description

@yfried

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions