Skip to content

Instantly share code, notes, and snippets.

@leighmcculloch
leighmcculloch / mfa-delete-enable.rb
Last active November 7, 2015 17:29 — forked from petethepig/mfa-delete.rb
A simple tool that will help you enable MFA Delete feature on your S3 bucket
#!/usr/bin/env ruby
require 'aws-sdk-v1'
print "S3 bucket name: "
bucket_name = STDIN.gets.chomp
print "AWS Access Key ID: "
aws_id = STDIN.gets.chomp
print "AWS Access Secret Key: "
aws_key = STDIN.gets.chomp
print "AWS Root MFA Serial: "