Skip to content

Instantly share code, notes, and snippets.

@subwiz
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subwiz/66e700b8f070f66dab27 to your computer and use it in GitHub Desktop.
Save subwiz/66e700b8f070f66dab27 to your computer and use it in GitHub Desktop.
# Do `gem install aws-sdk`
require 'aws'
AWS.config(:access_key_id => 'ACCESS_KEY', :secret_access_key => 'SECRET_KEY')
db = AWS::DynamoDB.new
table = db.tables['subwiz_table'].load_schema
item = table.items.create(id: "subwiz")
item.attributes.add(followers: ["Ariel", "Mermaid"])
item.attributes.add(following: ["Sunny", "Leone"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment