Last active
August 29, 2015 14:09
-
-
Save subwiz/66e700b8f070f66dab27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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