Table of Contents
Part 1: Setup Public Documents #
Step 1.A
Sign in to the AWS Console, Navigate/Search for DynamoDB
![](https://docs.tctech.in/wp-content/uploads/2024/01/DBPC_1-1024x239.png)
Step 1.B
- Click on “Tables” from the left menu.
- Select the correct AWS Region where you already have set up the Authentication Pool
- Click on “Create Table” to create a new table for storing Public Documents
![](https://docs.tctech.in/wp-content/uploads/2024/01/DBPC_2-1024x361.png)
Step 1.C
Enter the information exactly as shown below:
![](https://docs.tctech.in/wp-content/uploads/2024/01/DBPC_3a-800x1024.png)
![](https://docs.tctech.in/wp-content/uploads/2024/01/DBPC_3b-942x1024.png)
![](https://docs.tctech.in/wp-content/uploads/2024/01/DBPC_3c-1024x682.png)
A table will be created named “PublicDocsTable” which we will be using for storing Public Documents
Step 1.D
- From the AWS Console, Navigate to AWS AppSync, Select DBConnectAPI
- Click Data Sources from left menu & click “Create new data Source” button
- Set “PublicDocsDataSource” as name
- Select AMAZON_DYNAMODB as type
- Select your correct AWS region
- Select the previously created Table name – “PublicDocsTable“
- Select “New role”
- Click on “Create” to create a new data source.
![](https://docs.tctech.in/wp-content/uploads/2024/01/ac_1-1024x952.png)
- Select DBConnectAPI
- Click Schema from the left menu
- Paste the code from here: Click here
- Click on the Save Schema button
![](https://docs.tctech.in/wp-content/uploads/2024/01/ac_2-1024x519.png)
Next, Attach Resolvers