I want to create a Terraform configuration for DynamoDB table with multiple (> 10) attributes. And I have no need to add all attributes as an index to 
global_secondary_index or local_secondary_index.
But when I run terraform plan command I have next error:
All attributes must be indexed. Unused attributes: ... 
I found the validation check in the Terraform repository in validateDynamoDbTableAttributes function.
But also as I know the best practice is that each table in DynamoDB is limited to a maximum of five global secondary indexes and five local secondary indexes from General Guidelines for Secondary Indexes in DynamoDB.
And since I have more than 10 attributes it looks like a problem to me.
What I would like to understand why all attributes must be indexed and what to do in case if you have a big number of attributes.
Thanks!
 
    
 
     
    
