Problem:
While reading the items in DynamoDB by AWS CLI. you will get a error message like below, because of the default region might be configured wrongly in aws cli.
An error occurred (ResourceNotFoundException) when calling the GetItem operation: Requested resource not found
Soution:
Go to AWS CLI ...
Step 1: run --> aws configure
Step 2: Set correct region name where you have created the DynamoDB table
Step 3: run --> aws dynamodb get-item --table-name TestTable --key '{\"ID\":{\"N\":\"1\"}}'
While reading the items in DynamoDB by AWS CLI. you will get a error message like below, because of the default region might be configured wrongly in aws cli.
An error occurred (ResourceNotFoundException) when calling the GetItem operation: Requested resource not found
Soution:
Go to AWS CLI ...
Step 1: run --> aws configure
Step 2: Set correct region name where you have created the DynamoDB table
Step 3: run --> aws dynamodb get-item --table-name TestTable --key '{\"ID\":{\"N\":\"1\"}}'