GuidesRecipesAPI ReferenceChangelog
HomeSee demo
Guides

AWS DynamoDB

Source

  1. In Polytomic, go to ConnectionsAdd ConnectionDynamoDB.
  1. Enter the following information:
  • AWS Access ID
  • AWS Secret Access Key
  • AWS region (e.g. us-west-1)
  1. Click Save.

IAM Permissions

Polytomic uses the following IAM Actions when reading from DynamoDB:

  • dynamodb:BatchGetItem
  • dynamodb:Describe*
  • dynamodb:List*
  • dynamodb:GetItem
  • dynamodb:Query
  • dynamodb:Scan
  • dynamodb:PartiQLSelect

AWS's documentation lists some example policies here.

Considerations when building a DynamoDB model

Secondary index

When building a Polytomic model on a DynamoDB table with a secondary index, you have the option of pointing Polytomic to your secondary index using the Index dropdown. Doing so will avoid full table scans:

Strongly consistent reads

By default, DynamoDB's read model is an eventually consistent one. That is, the response for a read operation may not include the result of a recently-completed write operation. This keep read throughput high.

You can override this within Polytomic. To have Polytomic carry out strongly consistent reads, tick the Strongly consistent reads box in your Polytomic model editor. The tradeoff is that your reads will now take a bit longer: