Open
Description
Describe the feature
Re-opening this issue: #4093
❗️There is a problem: CloudFormation references implicitly indicate that there is a dependency between the consuming resource and the referenced resource. If we return a concrete name (string), this dependency will now be lost forever. Is there anything we can do about it? (@rix0rrr?)
A solution to this could be to return physical names only if embedded in a cross-environment stack. Otherwise return the token.
Use Case
Trying to reference resources across environments. This should be possible if I name the resources at compile-time. However cdk always tokenizes
it regardless of if a static name is provided or not.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
latest
Environment details (OS name and version, etc.)
mac