97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# File 'lib/ocean-dynamo/tables.rb', line 97
def create_table
attrs = table_attribute_definitions
keys = table_key_schema
options = {
table_name: table_full_name,
provisioned_throughput: {
read_capacity_units: table_read_capacity_units,
write_capacity_units: table_write_capacity_units
},
attribute_definitions: attrs,
key_schema: keys
}
dynamo_resource.create_table(options)
sleep 1 until dynamo_table.table_status == "ACTIVE"
setup_dynamo
true
end
|