Open AlJohri opened 3 years ago
our team would also be grateful for this upgrade.
I think Axios has upgraded. Waiting for a new release.
Hey @rwpswami @danconner-vertex ,
The option to auto delete objects upon bucket removal was added to the core functionality of aws-cdk recently. aws-cdk#3297 🥳
You just have to enable the autoDeleteObjects
option and set removal policy to RemovalPolicy.DESTROY
when creating the S3 bucket.
const bucket = new Bucket(this, 'MyTempFileBucket', {
removalPolicy: RemovalPolicy.DESTROY,
autoDeleteObjects: true,
});
See the official AWS CDK documentation