Skip to content

Conversation

SamanSathenjeri
Copy link

Issue # (if applicable)

Closes #35654.

Reason for this change

Fixes bug that causes replication buckets to be orphaned during cdk destroy due to not having the autoDeleteObjects and removalPolicy elements.

Description of changes

Added autoDeleteObjects and removalPolicy properties to the Bucket constructor in CrossRegionSupportConstruct.

Describe any new or updated permissions being added

None

Description of how you validated changes

Unit tests

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team October 6, 2025 07:45
@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/medium Medium work item – several days of effort p2 labels Oct 6, 2025
@SamanSathenjeri SamanSathenjeri changed the title fix: added autoDeleteObjects and removalPolicy fix(cdk pipelines): added autoDeleteObjects and removalPolicy Oct 6, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter fails with the following errors:

❌ Fixes must contain a change to a test file.
❌ Fixes must contain a change to an integration test file and the resulting snapshot.
❌ The title prefix of this pull request must be one of "feat|fix|build|chore|ci|docs|style|refactor|perf|test|revert"

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@SamanSathenjeri SamanSathenjeri marked this pull request as draft October 10, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/medium Medium work item – several days of effort p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(cdk pipelines): cdk pipeline support stacks should delete and not orphan s3 buckets

2 participants