Skip to content

Instantly share code, notes, and snippets.

@drumadrian
Created December 12, 2020 06:57
Show Gist options
  • Save drumadrian/107ce98357f6c51e193e42fb770915f9 to your computer and use it in GitHub Desktop.
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
#!/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