QuestionQ113

VerifiedTroubleshooting and Optimization

A developer is trying to get data from an Amazon DynamoDB table called demoman-table. The developer configured the AWS CLI to use a specific IAM user’s credentials and ran the following command:

aws dynamodb get-item --table-name demoman-table --key '{"id": {"N":"1993"}}'

The command returned errors and no rows were returned.

What is the MOST likely cause of these issues?

Explanation

The DynamoDB CLI command syntax is correct; the table exists; and DynamoDB is accessible via the CLI. The most common cause of get-item failures is insufficient IAM permissions. The IAM user must have a policy granting dynamodb:GetItem action on the specific table resource. Adding this policy resolves the access error without support escalation or architectural changes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!