Shaggy8192
Shaggy8192

Reputation: 3

AWS Error creating DynamoDB table: ValidationException while creating a dynamodb table using terraform

I am creating a dynamodb table with following schema in terraform:

code 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

Answers (1)

tddmonkey
tddmonkey

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

Related Questions