Description
Describe the bug
Route53’s CrossAccountZoneDelegationRecord
is broken in v2.87+, when source (child) domain is in opt-in region and target (parent) domain is not, with access denied from STS when CDK bundled custom resource (in source account) assumes specified role (in target account). Role's trust policy is based on account ID.
It seems the underlaying switch to JS SDK V3 is causing the issue.
Downgrading to v2.86 fixes the issue.
This is blocking our production and likely would affect many others. Please fix ASAP.
Expected Behavior
Able to deploy when source domain is in opt-in region and target domain is not, as this is existing behavior and the role pattern is supported by IAM.
Current Behavior
Fails to deploy with access denied from STS.
Reproduction Steps
As described in issue.
Possible Solution
Need to revert to previous behavior (when using JS SDK V2) by setting credentials region and/or STS endpoint against target region when assuming role
Additional Information/Context
No response
CDK CLI Version
2.88
Framework Version
No response
Node.js Version
18
OS
macOS
Language
Typescript
Language Version
No response
Other information
No response