(core): corssRegionReferences weak reference #22842
Labels
@aws-cdk/core
Related to core CDK functionality
effort/large
Large work item – several weeks of effort
feature-request
A feature should be added or improved.
p1
Describe the feature
corssRegionReferences is awesome feature.
I want a weak reference which can be updated or deleted even if it's used.
Use Case
Lambda@Edge requires Version ARN which is modified when the code is modified.
When I use crossRegionReferences with Lambda@Edge, updating code is rejected by ExportsWriter:
Example stacks:
When
lib/func.ts
is not modified, the stack CdkTest2 will be updated successfully.When
lib/func.ts
is modified,func.currentVersion
is modified.The deployment of CdkStack1 (us-east-1) will be failed.
Proposed Solution
Skip check in ExportsWriter when weak reference.
ALL cross-region exports are weak:
Only specific resources are weak:
Other Information
No response
Acknowledgements
CDK version used
2.50.0
Environment details (OS name and version, etc.)
Linux
The text was updated successfully, but these errors were encountered: