Sha256: 49df097fb55a701075119f142c13d0a0ea21e57b3a483b5d0b5daaaac1fab8bc
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
$: << File.expand_path("../../lib", __FILE__) require 'simple_aws/dynamo_db' ## # Expects your Amazon keys to be in the environment, something like # # export AWS_KEY="KEY" # export AWS_SECRET="SECRET" ## dynamo_db = SimpleAWS::DynamoDB.new ENV["AWS_KEY"], ENV["AWS_SECRET"] ## # This call will fail with a LimitExceededException on ReadCapacityUnits # If you get any other error then there's something wrong either with your credentials # or with the library ## p dynamo_db.create_table "TableName" => "SimpleAWSTestTable", "KeySchema" => { "HashKeyElement" => {"AttributeName" => "index","AttributeType" => "S"}, }, "ProvisionedThroughput" => {"ReadCapacityUnits" => 1, "WriteCapacityUnits" => 1}
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
simple_aws-1.2.3 | samples/dynamo_db.rb |
simple_aws-1.2.2 | samples/dynamo_db.rb |
simple_aws-1.2.1 | samples/dynamo_db.rb |
simple_aws-1.2.0 | samples/dynamo_db.rb |