-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-s3Related to Amazon S3Related to Amazon S3bugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp0
Description
If a stack is deployed with an S3 bucket with auto_delete_objects=True, and then re-deployed with auto_delete_objects=False, all the objects in the bucket will be deleted.
Reproduction Steps
- Deploy a stack with an S3 bucket created with
auto_delete_objects=True. - Upload files into the bucket.
- Deploy the stack again with
auto_delete_objects=False. - Observe that the bucket is now empty.
What did you expect to happen?
The bucket should not have been emptied.
What actually happened?
Since the custom resource was deleted, the bucket was emptied.
Environment
- CDK CLI Version : 1.118.0
- Framework Version:
- Node.js Version: 14.17.5
- OS : debian bullseye (running inside a container)
- Language (Version): Python 3.9.6
This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-s3Related to Amazon S3Related to Amazon S3bugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp0