Reputation: 3
I am creating a dynamodb table with following schema in terraform:
and getting the following error:
aws_dynamodb_table.: AWS Error creating DynamoDB table: ValidationException: 1 validation error detected: Value 'KEYS-ONLY' at 'globalSecondaryInde xes.1.member.projection.projectionType' failed to satisfy constraint: Member must satisfy enum value set: [ALL, INCLUDE, KEYS_ONLY]
This exception is coming from AWS. But not sure what am I doing wrong.
Upvotes: 0
Views: 2061
Reputation: 21184
The error is telling you everything you need to know - it says "Member must satisfy enum value set: [ALL, INCLUDE, KEYS_ONLY]" but your enum value is KEYS-ONLY
. Replace this with KEYS_ONLY
Upvotes: 3