S3BucketEmptyOnStackDelete
Resources
AWS::CloudFormation::CustomResource
Custom resource associated with the custom provisioning logic that CloudFormation will run during stack operations (Create, Update, and Delete).
AWS::Lambda::Function
Python lambda function that empty specified S3 bucket when receiving stack deletion request.
AWS::IAM::Role
Lambda function execution role.
Input
S3Bucket
Logical ID of AWS::S3::Bucket
resource whose all objects will be deleted during stack deletion operation.