Skip to content

dynamodb: CDK Error WIth Stacks Containing Dynamodb #35967

@dalethompsonplx

Description

@dalethompsonplx

Describe the bug

[23:13:03] ValidationError: Circular dependency between resources:
Could not create a change set, will base the diff on template differences (run again with -v to see the reason)

Getting an error, I believe it with aws-cdk-lib 2.222.0

Any of my stack using dynamodb is having this problem

[23:13:02] Removing existing change set with name cdk-diff-change-set if it exists
[23:13:02] Attempting to create ChangeSet with name cdk-diff-change-set for stack
[23:13:03] ValidationError: Circular dependency between resources: []
Could not create a change set, will base the diff on template differences (run again with -v to see the reason)

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

2.221.1

Expected Behavior

Deployment and diff works

Current Behavior

Error and failure in deployment

Reproduction Steps

Run a deploy using 2.222.0

Possible Solution

The fix is revert

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.222.0

AWS CDK CLI version

2.1031.1 (build a560d1e)

Node.js Version

NODE_VERSION=22.0.0

OS

"Debian GNU/Linux"

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-dynamodbRelated to Amazon DynamoDBbugThis issue is a bug.effort/mediumMedium work item – several days of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions