Setting up Amazon DynamoDB
1. Add integration
Select DynamoDB from the
integrations page.
Fill out the form with the following settings:
Cloud
Hybrid or Cloud-Prem
| Setting | Required | Description |
|---|
| Name | ✓ | Name that will be displayed to users when selecting this integration in Superblocks |
| Region | ✓ | AWS region where DynamoDB is hosted, e.g. us-east-1 |
| Access Key ID | ✓ | Access key ID for your AWS account |
| Secret Key | ✓ | Secret access key for your AWS account |
| IAM Role ARN | ✗ | ARN of the role for Superblocks to assume for accessing DynamoDB resources |
| Setting | Required | Description |
|---|
| Name | ✓ | Name that will be displayed to users when selecting this integration in Superblocks |
| Auth Type | ✓ | Choose between:
- Access Key - Use access key ID and secret access key authorization
- Token File - Use Service Account Token Volume Projection to authorize your data plane to connect to your DynamoDB databases.
- EC2 Instance Metadata - Use EC2 Instance Metadata to authorize your data plane to connect to your DynamoDB databases. If you are using Kube2Iam, you would select this option.
|
| Region | ✓ | If Auth Type is Access Key: AWS region where DynamoDB is hosted, e.g. us-east-1 |
| Access Key ID | ✓ | If Auth Type is Access Key: Access key ID for your AWS account |
| Secret Key | ✓ | If Auth Type is Access Key: Secret access key for your AWS account |
| IAM Role ARN | ✗ | ARN of the role for Superblocks to assume for accessing DynamoDB resources |
3. Test and save
Click Test Connection to check that Superblocks can connect to the data source.
After connecting successfully, click Create to save the integration.
Optionally, configure different data tags for separate development environments.
Creating Amazon DynamoDB steps
Connect to your DynamoDB integration from Superblocks by creating steps in Application APIs, Workflows and Scheduled Jobs. Steps can be configured to perform any of the actions below. Configure your IAM policy for the integration accordingly depending on the desired permissions.
"dynamodb:BatchWriteItem",
"dynamodb:CreateTable",
"dynamodb:DeleteItem",
"dynamodb:DeleteTable",
"dynamodb:DescribeTable",
"dynamodb:ExecuteStatement",
"dynamodb:ExecuteTransaction",
"dynamodb:GetItem",
"dynamodb:ListTables",
"dynamodb:ListTagsOfResource",
"dynamodb:PutItem",
"dynamodb:Query",
"dynamodb:Scan",
"dynamodb:TagResource",
"dynamodb:UpdateItem",
"dynamodb:UpdateTable"
Troubleshooting
Check out our guide on common errors across database integrations. If you are encountering an error that you don’t see in the guide, or the provided steps are insufficient to resolve the error, please contact us at help@superblocks.com.