Skip to content

core: Return concrete values for physical names and ARNs if explicitly stated #21487

Open
@melnikalex

Description

@melnikalex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudformationRelated to AWS CloudFormation@aws-cdk/coreRelated to core CDK functionalityeffort/largeLarge work item – several weeks of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions