Error: The security token included in the request is invalid - AWS DynamoDB

12,221

The error message indicates a problem with credentials. Embedding credentials in local variables in a script poses a security risk. Please try to use one of the recommended methods to configure your client credentials, in decreasing order of preference:

  1. AWS Identity and Access Management (IAM) roles (for example, in EC2 instance profiles or Lambda execution roles)
  2. A shared credentials file (~/.aws/credentials)
  3. Environment variables
  4. A JSON file on disk
Share:
12,221
AmazingDayToday
Author by

AmazingDayToday

Speak English, Russian, and Kazakh

Updated on June 28, 2022

Comments