(core): crossRegionReference resources can not be modified by Aspects #27780
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
This is same issue that has been opened here #22820.
When developers turn on crossRegionReference flag https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib-readme.html, cdk will create custom resources including lambdas and roles. But these custom resources could not be modified by Aspect application we built that tries to make resources conform to predefined rules. For example, we have enabled AWS Hook in aws account that requires IAM roles can be only be created with names has certain prefix. If those resources can not be modified, AWS hook will prevent from resource creation.
Expected Behavior
Custom resources created by enabling crossRegionReference should be modified by Aspects.
Current Behavior
Custom resources created by enabling crossRegionReference could not be modified by Aspects.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.93.0
Framework Version
No response
Node.js Version
20.5.7
OS
MAC
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: