Created
December 12, 2020 06:57
-
-
Save drumadrian/107ce98357f6c51e193e42fb770915f9 to your computer and use it in GitHub Desktop.
cleanup and delete amazon s3 bucket using ec2 user data for multiple spot instances
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
#!/bin/bash | |
yum update -y | |
aws s3 rb s3://yourbucket --force | |
poweroff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment