> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/reference/data-sources/dynamodb.md).

# AWS DynamoDB

Amazon DynamoDB is a fully managed, serverless, key-value NoSQL database. UI Bakery allows you to easily connect to DynamoDB with no need for additional layers like APIs or third-party services.

## Configuration

### Prerequisites

To connect your DynamoDB to UI Bakery, start with creating a `uibakery_dynamodb` user in [IAM](https://console.aws.amazon.com/iam/home):

* Enable **programmatic access.**
* You can grant full DynamoDB permissions or add the restrictions if required.
* Create a new policy and attach it to the new user.

### Connecting the data source

Once you've created the user with all the necessary permissions, you can proceed to connecting your AWS DynamoDB data source to UI Bakery.

1. On the **Data sources** page, click **Connect**, and select *AWS* *DynamoDB* in the Data sources list.
2. Specify all the required credentials.
3. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="/files/MruXehbYgc8dhBzbyL2d" alt=""><figcaption></figcaption></figure>

## Usage

Once you've connected your data source, you can start writing queries to DynamoDB. For this purpose, you need to select the [DynamoDB Request](/reference/working-with-actions/dynamodb-request.md) action step, select one of the predefined DynamoDB commands, and start constructing your queries in JS mode.

<figure><img src="/files/W6ivEIqkoJWPTFpxLe4C" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.uibakery.io/reference/data-sources/dynamodb.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
