Skip to content

Instantly share code, notes, and snippets.

View ericwikman's full-sized avatar

Eric Wikman ericwikman

View GitHub Profile
@petethepig
petethepig / mfa-delete.rb
Created January 29, 2013 08:08 — forked from anonymous/mfa-delete.rb
A simple tool that will help you enable MFA Delete feature on your S3 bucket
#!/usr/bin/env ruby
require 'aws'
if ARGV.length < 5
print <<-EOF
Usage: mfa-delete.rb <bucket_name> <aws_id> <aws_secret> <mfa_serial> <mfa_token> <s3_endpoint>
<s3_endpoint> is optional
EOF
exit
end