Implement Physical Names throughout the library #2283
Labels
effort/large
Large work item – several weeks of effort
package/awscl
Cross-cutting issues related to the AWS Construct Library
Requirements:
If a resource is provided a physical name upon creation, its attributes should not be intrinsic functions (should be resolved during synthesis and not during deployment).
It should be possible to request that a physical name will be allocated for the resource without explicitly specifying the name (e.g. autoName: true)
When we create a sub-resource for a customer implicitly (popular example: IAM Roles), and the parent resource is used in a way that forces the sub-resource to have a physical name (i.e., in a cross-environment manner), we should automatically assign a physical name to that sub-resource.
Automatically add a CDK/CFN metadata key “aws:cdk:physical-name” to annotate if physical name is available.
This resolved ARN/name version should be returned when invoking XxxArn and maybe we should also include a property that can be used to ensure that the result is static (e.g. “staticFunctionArn”).
Idea: use
ResourceName
as a the prop type for physical names.Also, see #1829 for initial discussion.
cdk.IResource
The text was updated successfully, but these errors were encountered: