Error: DynamoDB - The Security Token Included In The Request Is Invalid

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Solution
The security token included in the request is invalid means AWS rejected the credentials used to sign the request. It is different from an authenticated caller lacking DynamoDB permission.
- Verify the credential source used by the failing process. Environment variables can override the profile you intended to use.
- For temporary credentials, supply a matching access key, secret key and session token from the same session. Do not mix values from different refreshes.
- Renew an expired SSO or assumed-role session and let the SDK credential provider refresh credentials automatically.
- Check for disabled keys, copied whitespace and stale deployment configuration. Dummy Local credentials work only with an explicit local endpoint.
aws sso login --profile app aws sts get-caller-identity --profile app
The login command applies to an SSO profile. If STS succeeds but the app fails, compare its credential chain rather than rotating unrelated keys. Do not log or paste secret keys or session tokens while debugging. A timestamp-related InvalidSignatureException needs clock-skew investigation instead.
See SSO profile guidance and AWS documentation.
Other Common DynamoDB Errors (with Solutions)
- DynamoDB Update Not Working
- DynamoDB BatchWriteItem error
- dynamodb the table does not have the specified index
- Boto3 DynamoDB KeyError
- dynamodb connection timeout
- dynamodb update fail if not exists
- DynamoDB is not showing all columns
- dynamodb item size limit error
- dynamodb atomic counter not working
- DynamoDB local error spawn java ENOENT
- DynamoDB Error All Attributes Must Be Indexed
- aws.dynamodb.documentclient is not a constructor
- KMS Key Access Denied Error DynamoDB
- name key is not defined dynamodb
- DynamoDB TTL 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
DynamoDB Info
© 2026 Dynobase