DynamoDB
Getting Started
- Create an IAM user with permission to use DynamoDB, or get temporary credentials from a Cognito identity pool.
- Call Create Dynamo Db Object with the credentials and a Client Configuration with the Region of your tables. See Initializing the Plugin.
- Store the Dynamo DB Client Object from the callback in a variable.
- Pass it to the DynamoDB nodes, for example List Tables. See Using the Plugin.
When you are done, call Destroy Dynamo Db Object.
tip
Limit the IAM policy to the tables and actions the game needs, for example dynamodb:GetItem and dynamodb:PutItem on one table. If players write their own data, use Cognito and the dynamodb:LeadingKeys condition so each player can only change their own items.