Skip to content

Conversation

austeny
Copy link

@austeny austeny commented Nov 15, 2023

The plugin runs into errors when creating tables with GlobalSecondaryIndexes defined. This is because the AWS DynamoDB API describeTable() returns additional properties in the GSI ProvisionedThroughput object that are not expected when performing a createTable(). These extra properties are defined here https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughputDescription.html (eg. NumberOfDecreasesToday)

This fixes the issue noted in #18.

There is a conditional to add the ProvisionedThroughput property to the GSI because an empty object or undefined would throw and error since if this property exists then the API expects the Read/WriteCapacityUnits to be >=1 which doesn't handles cases where this property isn't used in a GSI and the Billing Mode is PAY_PER_REQUEST.

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

Successfully merging this pull request may close these issues.

1 participant