question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Resource FQN tokens aren't resolved in a user friendly way

See original GitHub issue

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

cdktf & Language Versions

0.9.0. Any language.

Affected Resource(s)

Attempting to use .fqn on any resource when appending to it or using in an array (probably other cases as well). This mainly comes up when needing to use escape hatches.

Expected Behavior

Synthesized output is valid.

Actual Behavior

  • Expected the start of an expression, but found an invalid expression token
  • jsii.errors.JSIIError: Expected array type, got ā€œ<unresolved-token>ā€
  • X is object with Y attributes

Important Factoids

Support for cross stack references caused a change in behavior. Previously .fqn actually return just a raw string (string token of string is the input string).

References

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mutahhircommented, Sep 27, 2022

Ah, I didnā€™t fully understand the core of the issue but went on from the last error message. My bad. Thanks for reopening @jsteinich, Iā€™ll take another look soon.

To clarify: The main issue is the inability to use .fqn within the interpolated section of a string. The token systemā€™s expectation that the resource fqn is being inserted into a non-interpolated terraform string is requiring users to jump through hoops to reference something that previously just required them to just do resource.fqn.

1reaction
paymogcommented, Sep 20, 2022

Thanks for looking into this @mutahir! Iā€™ve long since resolved this issue and I donā€™t quite remember how I did it.

Though, I suspect that the reason I was seeing that error on 0.12 was because 0.12 requires running tsc prior to diff/deploy while 0.8 didnā€™t. I didnā€™t realize that until quite a few hours into debugging the upgrade.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Special investigation: Socios 'fan tokens' ā€“ what they really are ...
Socios fan tokens are not purchased using dollars or pounds. It requires the intermediary step of buying Socios' own cryptocurrency, calledĀ ...
Read more >
A Dive Into Fan Tokens - Crypto Briefing
Fan tokens are utility tokens sports clubs issue and sell to further integrate fans into the club. These tokens are like loyalty programs....
Read more >
Will Fan Tokens Redefine Engagement in Sports? - Ledger
Key Takeaways: ā€” Fan tokens are a type of cryptocurrency that can be exchanged for merchandise, tickets and experiences from a team or...
Read more >
What Are Fan Tokens? Crypto Assets That Give Fans a Voice
Fan tokens are a type of cryptocurrency designed to provide membership benefits to fandoms of sports teams, bands and other groups. Holders ofĀ ......
Read more >
Asking users to generate an access token - Canvas Community
It's in the Live API, found by adding /doc/api/live to the end of your Canvas instance. They don't store that, though, which makes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found