Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSI ProvisionedThroughput is not existed #24

Closed
ArronHsiao opened this issue Sep 30, 2019 · 1 comment
Closed

LSI ProvisionedThroughput is not existed #24

ArronHsiao opened this issue Sep 30, 2019 · 1 comment

Comments

@ArronHsiao
Copy link

Hi, I found errors in index.js for table.LocalSecondaryIndexes[i].ProvisionedThroughput is undefined. I modified the following code for LSI and it works :

  if (table.LocalSecondaryIndexes[i].ProvisionedThroughput){
    delete table.LocalSecondaryIndexes[i].ProvisionedThroughput.LastIncreaseDateTime
    delete table.LocalSecondaryIndexes[i].ProvisionedThroughput.LastDecreaseDateTime
    delete table.LocalSecondaryIndexes[i].ProvisionedThroughput.NumberOfDecreasesToday
  }
@danielrive
Copy link

Hello, i had the same error.
I tested adding comments to the lines and all works fine.
@ArronHsiao your solution is the more apropiate.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants