gadelkareem / sails-dynamodb

Amazon DynamoDB adapter for Waterline / Sails.js
http://sailsjs.org
46 stars 22 forks source link

Getting ResourceNotFoundException when using Local Secondary Index #43

Open kidsil opened 7 years ago

kidsil commented 7 years ago

I'm trying to use Local Secondary Indexes by adding: index: 'secondary'

To one of my fields (type 'integer'), unfortunately I'm getting the following error:

Error creating tables: { [ResourceNotFoundException: Requested resource not found: Table: test_table not found]

Without the index, the table is created, with it - the aforementioned error appears.

ferrants commented 7 years ago

I recommend creating all your tables beforehand and not relying on the library to create your tables for you.