Database Reference
In-Depth Information
Tip
The first six lines in the previous screenshot are logger messages (warning, information,
or error) and the remaining lines are the output syso (short way of calling Sys-
tem.out.println ) print statements mentioned in the sample code.
I have deliberately modified the access key of the credentials file located at
$USER_HOME/.aws/config . After that, if we try running the sample code it will
throw the error UnrecognizedClientException .
This exception will be thrown only if the project is not able to instantiate the DynamoDB
client, which is a clear indication that there is something wrong with the credentials. Take
a look at the following screenshot:
Since the sample code is provided by AWS itself, I don't want to get into trouble by
providing the code here. So we will see what that sample code does. First and foremost, it
creates a table named my-favorite-movies-table in the US_WEST_2 region.
Once we have run this code, we need to open AWS Explorer and refresh Amazon Dy-
namoDB as follows:
Tip
Make sure that you've selected the correct region ( US_WEST_2 ) in AWS Explorer; other-
wise we cannot see the table getting created.
Search WWH ::




Custom Search