> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon DynamoDB

> Build apps with read and write access to a DynamoDB database

## Setting up Amazon DynamoDB

### 1. Add integration

Select **DynamoDB** from the&#x20;
**integrations page**.

### 2. Configure settings

Fill out the form with the following settings:

> [tab] Dedicated Cloud
>
> | Setting | Required | Description |
> | - | - | - |
> | Name | ✓ | Name that will be displayed to users when selecting this integration in Prod AI |
> | Region | ✓ | [AWS region](https://docs.aws.amazon.com/general/latest/gr/ddb.html) where DynamoDB is hosted, e.g. *us-east-1* |
> | Access Key ID | ✓ | [Access key ID](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | Secret Key | ✓ | [Secret access key](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | IAM Role ARN | ✗ | ARN of the role for Prod AI to assume for accessing DynamoDB resources |

> [tab] Managed BYOC
>
> | Setting | Required | Description |
> | - | - | - |
> | Name | ✓ | Name that will be displayed to users when selecting this integration in Prod AI |
> | Region | ✓ | [AWS region](https://docs.aws.amazon.com/general/latest/gr/ddb.html) where DynamoDB is hosted, e.g. *us-east-1* |
> | Access Key ID | ✓ | [Access key ID](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | Secret Key | ✓ | [Secret access key](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | IAM Role ARN | ✗ | ARN of the role for Prod AI to assume for accessing DynamoDB resources |

> [tab] Cloud (legacy)
>
> | Setting | Required | Description |
> | - | - | - |
> | Name | ✓ | Name that will be displayed to users when selecting this integration in Prod AI |
> | Region | ✓ | [AWS region](https://docs.aws.amazon.com/general/latest/gr/ddb.html) where DynamoDB is hosted, e.g. *us-east-1* |
> | Access Key ID | ✓ | [Access key ID](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | Secret Key | ✓ | [Secret access key](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | IAM Role ARN | ✗ | ARN of the role for Prod AI to assume for accessing DynamoDB resources |

> [tab] Hybrid (legacy)
>
> | Setting | Required | Description |
> | - | - | - |
> | Name | ✓ | Name that will be displayed to users when selecting this integration in Prod AI |
> | Auth Type | ✓ | Choose between: <ul><li>**Access Key** - Use access key ID and secret access key authorization</li> <li>**Token File** - Use [Service Account Token Volume Projection](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) to authorize your data plane to connect to your DynamoDB databases.</li><li>**EC2 Instance Metadata** - Use [EC2 Instance Metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html) to authorize your data plane to connect to your DynamoDB databases. If you are using [Kube2Iam](https://github.com/jtblin/kube2iam), you would select this option.</li></ul> |
> | Region | ✓ | If **Auth Type** is Access Key: [AWS region](https://docs.aws.amazon.com/general/latest/gr/ddb.html) where DynamoDB is hosted, e.g. *us-east-1* |
> | Access Key ID | ✓ | If **Auth Type** is Access Key: [Access key ID](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | Secret Key | ✓ | If **Auth Type** is Access Key: [Secret access key](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html) for your AWS account |
> | IAM Role ARN | ✗ | ARN of the role for Prod AI to assume for accessing DynamoDB resources |

### 3. Test and save

Click **Test Connection** to check that Prod AI can connect to the data source.

On Dedicated Cloud, allowlist your [Prod AI data plane IP addresses](https://docs.prod.ai/deployment/security/overview.md#ip-addresses).

After connecting successfully, click **Create** to save the integration.

### 4. Set data tags

Optionally, configure different data tags for [separate development environments](https://docs.prod.ai/development-lifecycle/build/data-tags.md).

**Amazon DynamoDB connected!**
You can now build
[apps](https://docs.prod.ai/coding-agents/apps.md) and [agents](https://docs.prod.ai/coding-agents/agents.md) with Amazon DynamoDB.

## Creating Amazon DynamoDB steps

Connect to your DynamoDB integration from Prod AI 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](https://docs.prod.ai/integrations/troubleshooting/troubleshooting-databases.md). 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 [support@prod.ai](mailto:support@prod.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.