Error: DynamoDB Error All Attributes Must Be Indexed

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Solution
All attributes must be indexed commonly comes from the Terraform AWS provider when an attribute block is not used by a table or secondary-index key. It does not mean every field stored in every item needs an index.
resource "aws_dynamodb_table" "orders" {
name = "Orders"
billing_mode = "PAY_PER_REQUEST"
hash_key = "pk"
range_key = "sk"
attribute {
name = "pk"
type = "S"
}
attribute {
name = "sk"
type = "S"
}
}Items in this table can contain status, amount and nested documents without declaring attribute blocks for them. Add definitions only for distinct key attributes used by the table, GSIs or LSIs. INCLUDE projection fields are not key definitions.
If a declared field really is an index key, inspect the rendered configuration: a dynamic block or false condition may have omitted the index. Match attribute names and types exactly. The corresponding AWS API field is AttributeDefinitions; adding indexes for every ordinary item field is not the fix.
Other Common DynamoDB Errors (with Solutions)
- dynamodb unable to locate property for key attribute
- is not authorized to perform dynamodb:* on resource
- dynamodb unable to parse base64 string
- dynamodb-admin command not found
- dynamodb local could not load credentials from any providers
- dynamodb botocore.exceptions.nocredentialserror unable to locate credentials
- localstack dynamodb not working
- dynamodb-admin not working
- dynamodb cannot assign requested address
- requested resource not found aws dynamodb
- dynamodb global secondary index does not project
- dynamodb-admin is not recognized as an internal or external command
- AWS DynamoDB CredentialsError: Missing credentials in config
- DynamoDB Errors InvalidSignatureException Signature Expired
- dynamodb put item not working
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
- SSH GUI Client
- Chat With Cloud
- MongoDB GUI Client
- AWS Cost Monitoring
- DynamoDB Query Builder
- DynamoDB Code Examples
- DynamoDB Node.js Queries
- DynamoDB JSON Converter
- DynamoDB UUID Generator
- DynamoDB Local Admin GUI
- DynamoDB Pricing Calculator
- DynamoDB Single-Table Design
- Best DynamoDB GUI Clients
- Dynobase vs DynoTable