Resource FQN tokens aren't resolved in a user friendly way
See original GitHub issueCommunity 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:
- Created a year ago
- Reactions:4
- Comments:9 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 doresource.fqn
.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.