Skip to content

Instantly share code, notes, and snippets.

View jonneale's full-sized avatar

Jon Neale jonneale

View GitHub Profile
@jonneale
jonneale / dynamo-backups.rb
Last active December 17, 2015 20:39
Dynamo DB backups using the Ruby AWS SDK
require 'aws-sdk'
AWS.config({:access_key_id => "your-access-key-id",
:secret_access_key => "your-secrect-access-key",
:region => "eu-west-1"}) #region is optional
log_uri = "s3n://dynamo-backups/dynamo-backup-resources/logs" #Can be anywhere you like on S3
emr = AWS::EMR.new
job = emr.job_flows.create('dynamo-db-backup', {log_uri: log_uri,