Skip to content

Instantly share code, notes, and snippets.

@rweald
Created March 13, 2012 00:10
Show Gist options
  • Save rweald/2025596 to your computer and use it in GitHub Desktop.
Save rweald/2025596 to your computer and use it in GitHub Desktop.
require 'aws-sdk'
require 'uuid'
require 'pry'
uuid = UUID.new
dynamo_db = AWS::DynamoDB.new(:access_key_id => "AKIAJLGFC545YHHWOD3A", :secret_access_key => "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")
dynamo_db.tables.each { |t| puts t.name }
tweets_db = dynamo_db.tables["tweets"]
tweets_db.hash_key
tweets_db.items.create("id" => uuid.generate, "content" => "hello world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment