fix(dynamodb): table v2 arn validation (#38354) - #38384
Open
wasim-builds wants to merge 6 commits into
Open
Conversation
aws-cdk-automation
previously requested changes
Jul 23, 2026
aws-cdk-automation
temporarily deployed
to
automation
July 23, 2026 08:35 — with
GitHub Actions
Inactive
aws-cdk-automation
temporarily deployed
to
automation
July 23, 2026 08:35 — with
GitHub Actions
Inactive
Author
|
Exemption Request: This fixes a bug in cross-account replica table validation for partially tokenized ARNs. No new AWS resources are introduced. |
aws-cdk-automation
temporarily deployed
to
automation
July 23, 2026 09:39 — with
GitHub Actions
Inactive
aws-cdk-automation
temporarily deployed
to
automation
July 23, 2026 09:39 — with
GitHub Actions
Inactive
…-account validation (Fixes aws#38354)
wasim-builds
force-pushed
the
fix/issue-38354-dynamodb-table-v2-arn-validation
branch
from
July 23, 2026 14:16
d047f2c to
945d76d
Compare
aws-cdk-automation
temporarily deployed
to
automation
July 23, 2026 14:34 — with
GitHub Actions
Inactive
Author
|
Rebased onto latest
|
aws-cdk-automation
dismissed
their stale review
July 28, 2026 04:02
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
Author
|
Hey 👋 Friendly ping on this one — fixes cross-account replica table ARN validation in DynamoDB TableV2. The change is small and focused. Would appreciate a review when possible! 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #38354
Problem
TableV2ARN validation uses a broadToken.isUnresolvedcheck that rejects partial-tokenized ARNs. This breaks cross-account replica validation when the account/region is still a token during synthesis.Fix
Remove the blanket
Token.isUnresolvedguard and allow concrete account/region resolution during replica validation.Scope
packages/aws-cdk-lib/aws-dynamodb/lib/table-v2.ts: relax validation logicpackages/aws-cdk-lib/aws-dynamodb/test/table-v2.test.ts: add 15 lines of replica validation testsVerification
Cross-account table replica creation succeeds when account/region tokens are present but resolvable.