Created
April 22, 2020 00:21
-
-
Save brandonwestcott/a350fd01651d98dc733d3e2a20eef3d6 to your computer and use it in GitHub Desktop.
Delete all S3 objects AWS CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3api put-bucket-lifecycle-configuration --bucket $bucket --lifecycle-configuration '{"Rules":[{"Expiration":{"Days":1},"ID":"empty","Filter":{"Prefix":""},"Status":"Enabled","NoncurrentVersionExpiration":{"NoncurrentDays":1},"AbortIncompleteMultipartUpload":{"DaysAfterInitiation":1}}]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment