Skip to content

Route53’s CrossAccountZoneDelegationRecord is broken in v2.87+ for opt-in region to non-opt-in region #26593

Closed
@chuanconggao

Description

@chuanconggao

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.

Related to #26562 and #26325

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws-cdk-libRelated to the aws-cdk-lib packagebugThis issue is a bug.effort/mediumMedium work item – several days of effortnode18-upgradeAny work (bug, feature) related to Node 18 upgradep1sdk-v3-upgradeTag issues that are associated to SDK V3 upgrade. Not limited to CR usage of SDK only.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions