Treat token references as connections (and show them in the Console) #6433
Labels
🛫 console
Console
✨ enhancement
New feature or request
needs-discussion
Further discussion is needed prior to impl
🎨 sdk
SDK
Use Case
When a resource references an attribute of another resource, it introduces a relationship between them, similarly to the relationship created when inflight code calls a method on another preflight resource.
I want to see these relationships (connections) in the Wing Console!
The fact that the relationship is introduced through a reference to an attribute and not a method call doesn't make it less of a relationship.
Before:
After:
Proposed Solution
We should identify tokens when we call
toSimulator()
in the resource configuration (simulator initially, but can also do it for terraform), and simply add a connection to thetree.json
.It should be straightforward to add something like this.
Implementation Notes
No response
Component
No response
Community Notes
The text was updated successfully, but these errors were encountered: