Error: cognitoidentitycredentials is not authorized to perform dynamodb describetable
Answered by Rafal Wilinski
What's Causing This Error
You may run into this error if the required identity-based policy to access the function describeTable()
is not assigned to the IAM Role.
Solution: Here's How To Resolve It
To resolve the error, simply add the identity-based policy shown below to the IAM Role.
{ "Version": "2012-10-07", "Statement":[ { "Sid": "permission_for_describe_table", "Effect": "Allow", "Action":["dynamodb:DescribeTable"], // permit on all tables "Resource": "*" } ] }
Other Common DynamoDB Errors (with Solutions)
- dynamodb does not support null values
- aws.dynamodb.documentclient is not a constructor
- DynamoDB Local Missing Authentication Token
- AWS Lambda DynamoDB Stream Error
- is not authorized to perform dynamodb:* on resource
- DynamoDB Hostname Cannot Be Null
- dynamodb botocore.exceptions.nocredentialserror unable to locate credentials
- dynamodb atomic counter not working
- dynamodb cannot read property '0' of undefined
- why is the GSI dynamodb not showing item count
- DynamoDB Update Not Working
- could not unconvert attribute dynamodb
- dynamodb is abstract cannot be instantiated
- DynamoDB ValidationException: Query condition missed key schema element
- dynamodb ttl not deleting / erasing items
Login to the AWS Console less. Use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase