{"id":316,"date":"2021-11-01T15:10:21","date_gmt":"2021-11-01T15:10:21","guid":{"rendered":"http:\/\/18.141.20.153\/?p=316"},"modified":"2025-08-22T07:50:49","modified_gmt":"2025-08-22T07:50:49","slug":"how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2","status":"publish","type":"post","link":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/","title":{"rendered":"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?"},"content":{"rendered":"<span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" src=\"https:\/\/lh3.googleusercontent.com\/inmXGf8e5ntqM1fxnbUrcApm5HRrCrQkw6R0ETatX1K51DWj5NkYcrEpNuaJd6FnK5kn-VBcX1A9ukWcn2qxAiSoAu7IVylscA8gowR8LoVntKZs7xgPktIHhzwMFZpJ1nJHGXdu\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\" width=\"841\" height=\"451\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">In our previous blog <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-1\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to create an API endpoint to provision a DynamoDB table using AWS AppSync? (Part 1)<\/a>, we have discussed AWS AppSync, its features, benefits, use cases, etc. In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.&nbsp;<\/p>\n\n\n\n<h2>Business Scenario<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">Workfall is currently planning to schedule a huge number of events in Singapore. The organization has a Data Analytics vertical and there is a need for the team to perform different types of queries on the API side to perform some analysis. The developer team builds an application for scheduling events. Now for the backend to store the records of the events, the developer\u2019s team has been asked to build and integrate an API that is scalable on-demand and can be easily altered on demand.&nbsp;<\/p>\n\n\n\n<p class=\"has-text-align-justify\">After a detailed team discussion, the developer\u2019s team decides to make use of the Amazon Service &#8211; <a href=\"https:\/\/aws.amazon.com\/pm\/appsync\/?trk=a0465925-8003-4d68-bc59-c7cd4211829e&amp;sc_channel=ps&amp;ef_id=Cj0KCQjwr82iBhCuARIsAO0EAZxlRir9vMB0XJSXWnW2gdhvmgEty-vn84pdp16NJu4tMdzfi8jjow4aAuaXEALw_wcB:G:s&amp;s_kwcid=AL!4422!3!647258140311!e!!g!!aws%20appsync!19621397201!145160426349\" target=\"_blank\" rel=\"noreferrer noopener\">AWS AppSync <\/a>to create an API that will store the data in the DynamoDB. An API created in AWS AppSync can be easily integrated with a web application and it offers a scalable approach for the data analytics team to perform a huge number of queries to fulfill their requirements.<\/p>\n\n\n\n<p><strong>To implement this, we will do the following:<\/strong><\/p>\n\n\n\n<ul><li>Login to your AWS Account and navigate to the AWS AppSync console.<\/li><li>Create a new Event API.<\/li><li>Clone the react application from the GIT repository.<\/li><li>Download the config file for javascript from the API Dashboard.<\/li><li>Paste the config file in the project root folder.<\/li><li>Install the dependencies for your application.<\/li><li>Start the server to access the application.<\/li><li>Create new Events on the application and explore the data stored in the DynamoDB table.<\/li><li>Explore the DynamoDB dashboard.<\/li><li>Navigate back to the AWS AppSync dashboard and explore the various flexibilities and the various options available.<\/li><li>Run the basic queries on the AppSync dashboard to test out the API created.<\/li><\/ul>\n\n\n\n<p class=\"has-text-align-justify\">Login to your AWS console and search for AppSync service. Click on it to navigate to the AWS AppSync dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/fTWfenOOoxdaQYVpcpDCNJOPuoYp6JvfTjwl93EYtLAxpp1d7c9i3gbaYeg1WJqy62QCXgfvCyOlhJZMLKCsij7DoR_Gx83GqD0L2PNkT5ycQ_ywlU1l4Id1VD43mMN1HwNqYylK\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will be navigated to the AWS AppSync Dashboard. Click on Create API to create a new API.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/OX3xIpk0FKtnpCBpU8OBtVA58BHSVKRQhGDv2Z52VS0E6DKanj75L_yeTGJ9pkNg6iFKYRU621gzH0fRRogMpND07J-rutfrYJ0pwWfuL3T0XkN18li0Qjeq9zm7KK8gHAGmvyZg\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">In Step 1, you can customize your API based on your preference. Since we require an API for the Events to be maintained, scroll down on the same page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/vWf-UYUy6-BPT2ynJZi_Is1M5j-KIDjGoLfNFdBjUrmsa78_0SnB-azv7TDtcjEo9L6ZKMnpvSH9gub5nkwuDfRJUFbRlHEaPzSJs3gxS6GpSX1i00sBWjCvDDWByXUN4x5N5ntQ\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select Event App and once done, click on Start.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/cTDUPPFtEDiVnE8hrk5OtKCzibxQwNlRL5MHHwfXT4aWobkEcZLeXHOsKYMYf9At0kaHCdaO509xLKjaqOedog-Jwh3RecJFRU7-WdpHlK0o8s8SDZypMg8fW23zdXySgkAhdWhk\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will be navigated to Step 3. On the Create resources dashboard, enter a name for your API configuration and click on Create.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/3KPdFEryGx_5prRPdqkBH0OXBKKCqcajGNdafryJinz3M00hOCGjNACDxzcTYHZ5wBTjOABmCFSCLgpO4Om4Hx-StbNXpDVhyfoHNnX-faGrMILpn8Zo5yn6pSQuw9PBYEl9bzK3\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">It might take a few seconds for the API to be configured. Wait for some time till your API is ready.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/aIV_vc4v6dU-mw3wR2T03GV0wawHVRREnDVaWxUlBoONNZoIZT_ghqicqTtS7i7TGmxhQ4Rp310yY6F1ase_N5jecdpmCGclQM-pghlUdfSdsg7VvvZMdaJ4t_U6SJ60gvIT12VT\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once done, you will be navigated to the Queries tab of your API to perform queries. We will look at this part in some time.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/Bzu9-1hOf-uO75ex48iHGwaBRkIZJhpPwDxHDdyP4H67873f5AT859cV2Zczez7rdUx4szP1RBfRnhbxf1STUZ6o3V9NgcFetElD2bXCNtgv4VZPANpDHeYbvq9soGNSMfBTT9IQ\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, click on the API name you just created. You will be navigated to a dashboard that guides you on how to integrate the API with your application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/orvrwPUnfXJfk9Gk7rsAwpq9M1pqc2snesYKb6oTxVmKPLmTFxZNhDqhtjJWJMWACdG_n0D9qRakqpy48Kga9Kj33U4N-yqokMgHX86cC2tH-zQnlahHNm1MwCN4Y4unh-3tkNWe\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">If you scroll down, you will see the commands to be executed to integrate the created API with your application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/kt6FQjK2kRVYgcjvAko8kqPx0BtKD-husRDZBM6W0v5x8QHgJAsIHoUmdAr_TYOte-MqJmIKrgZvCatPWmgdXmhd7ipdtNYrCN_4PLGajnnetDcTABl9Wik9A5tsidxd59tK8T_h\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Scroll down more and you will see the different Sample repositories provided by AWS to begin.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/-GlVCuwv0hrlX641wj4XGZzNK9tmEznwQQed7L_fc3hEcnSOkK1eOFVF1MNbT_vU5T5BLsa6qDvEHMik_2P8eAIkznsi0RHM8gg7-vfHqZOdm6r12eP66QCEQAfDQ0YvVbj_8_5P\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">To get the details of your API, click on the Settings tab on the left pane. You will find all the details needed to be entered into your application while integrating the API.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/kiI8TkUxALgbNXrunBv05FWK0cbXj0VbML4S_BCChfmVUxtvc4d3YdZJIw1C3nE4lNS64WIbwHgYn0zapdkti6JVf18UtSo6WdRaMU7bfevxA8XJbZCCs4N-YRPG2Onis3kSB0pr\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, clone the repository by using the command below to fetch the code for the react application.<\/p>\n\n\n\n<p><code>git clone https:\/\/github.com\/aws-samples\/aws-mobile-appsync-events-starter-react.git<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/49jU1kRrjzvvRlcKVk5nlgC5pleC6Ui4cf0IRfNlBa5c7XjrKOA_vVRUaHfjjOmwrVRqMUTCXQ47qQ4TkIO3C23dj7H69n4BVPktoic3qqgrmuRR6mowUGg0p_aVin_CcrjEu367\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Open the cloned folder in an editor and cd into the root directory of the application folder using the command <code>cd <\/code>folder_name.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Navigate back to the AWS AppSync dashboard and click on your API. Under integrate your app, switch to the Javascript tab.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/tzEHGi2lmSVnCRdlHTROKUvQLQPOl6I3raZwDowK8Fg9sMRgatXn726NBCFDZb0UnuuLmgVXud5Aj-0d66zBOIrnqEAegpjjrB42k17SnAmZ4xCiL8A9UBjQDmdT9fJJBwj3lvlI\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Scroll down and hit the Download Config button to download the aws-exports.js config file to be added to your application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/gWvWhxbc7aWSx0UKqjmi2yoHsKSxml3hEWxF-0msqzOeKSbS-f5Znj2x1Pi2Gn5NLr00OjHX9_Epj1qfUG25C7FcyLUMZHH1iPhwIooIwamdjzXn-Ja8p5O_syPV3LsZZk9laEQ4\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now copy-paste the downloaded file in the src folder of your application.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/-4uU8KjImC0pCt3QhJuVecLYcOkGvqtEKblIHTL1ZUMYijlzbKYSE3ySG0vQHm3WLHSO-ziYarpTVFO_7TEL0y2NVd4rPJtcjlEnpmOwjzGjvEwfJ5xX5DjJ_an9eeDlkQ4L7Lx4\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On the terminal in the root project directory, run the command <code>\u2018npm install\u2019<\/code> to install the dependencies.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/l_ddXqhuiZKnrEXsNgf846pDu7q8b6Z-tydsOy7T0A2ehzaaof0WKg4dbJTH8stnnedAo8mk4Wt41Eb7uNjwiKGva1UV9W3LbnR0cfD7XztmEM-4_BFE1KjqLEQC7q3ckK_SXDdL\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once done, run the command <code>\u2018npm start\u2019 <\/code>or \u2018<code>npm run start<\/code>\u2019 to run the server and access the application on your localhost. It might take some time to start the development server.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/A9TPWue4cCXG7arzg-pAVckFWqFkWV1c5D8AltJSoYqp60lyHyrHKNGPzdEv1XNqbZSjJ5NbLRshO232NwDW3kjDxmvsx6pT_u8l5mC8J7-j0u1QhdLkwrNivceXx6LMlgsPALz5\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On successful compilation, the application will be accessible and you will be available to hit the localhost URL to access the same.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/OpR92p9RGx-Xx9Un_XqA1tEd-sBDt8QhKBx2u77g_TGmltDqcFHwykMNMOOV0DZ9J3CLgQyqvyhRWOky9wGSTAWkMHJkauc5Jbt9p8fVYS3dQ18dmpnR6Rac6nbaPDc0u9ihccKu\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">In your browser, in a new tab, access the application on 3000 port number. Now let\u2019s add new events and check if the API is working fine. Click on Create new Event.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/F8LEf5oQgS304rRpprh33VE8t2EgVwkTZEDorGmV6GH6Yxq4DngWG6kjVeZw1gzJyuEFsa4229eWwl04pkCdn4UsLTXkzUM361xsN8XoCR3tq3ueDY8S-bY1sTvsWqooRoPJ2_UR\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">A modal will appear to add a new event. Enter in the required details in the corresponding fields.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/czJA-NnD62CfS3ODXxhhwjImqsLn7HpgsHnCf1PKIGr-4aED1epY-wMaIm-qAZrpaMK9VKC3yfH2aTfE-71NI5TlM3ArsbCaoWdzFciNA8ZWFhSWBWAhr_v0l292_1OSoXed4Cv-\" alt=\"\"\/><\/figure>\n\n\n\n<p>Once done, click on Save.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/imDxXkcHH62QYvH9VDno4CRUTQ5FDNoAg-EwiV6K-IJdxumgVPiShYg49v7PuXxbujNcWWFu2haawTdmWBh56ncgUsc3CIGL-qRP3zSLmIBiHDfcotXeopBqc5X1ODyjpD5UMJz5\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will be navigated to the dashboard of the application and a new event you just created will be visible on the dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/Fa6Ht0-87LCWakNlAIAYl_jtpdImzjmHTGGJK38AeSpmey_hQ5vrHKSx4qVTSd1czN5wUM1b-DaX5PcYWkVgD6_8QtagDwOIyeucuUotgpdBNhkXaznBZ1PHMYhrjmLuVFMdLrIy\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Navigate back to the AppSync dashboard and click on the Data Sources tab in the left navigation pane.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/xVnFHrM40cRSThH5HqluEM_OrcOmREyayKVq-bpYz4wTjGGKzFbXaiQvXWGRWY6Sb0YVjOAzha7ioz1aRW8UEHMpog-NlbF4PlLhItyrSWp_PKrhKERjd0s2QfHCnz_rTSeBbl5E\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Under the Resources column for the AppSyncEventTable, click on that resource to navigate to the Database in which we are expecting our data to be stored.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/-7qnUJzZm3Aex2JBZHyZEVgj5hbLpkq4hLV3cptVz5zlcSo3w6cTHpudoXupz7AogMHtJLyYySEKvFtWx3osmSRc63tJi4204fETm7Rdu1SDLzkD8nw6U9ZgnBpmp1O6hJayWzHp\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will be navigated to the Amazon DynamoDB dashboard. Click on the items tab on the dashboard to see the data you just added.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/OlUGIiH36DtjWuY44RqpOjP3gy79SA-ECqyBVNTcQmg7CNOanDwED--UuM3T0IMRNCTu9bcaYtISsuxhbNsYYetOlEaPvcA0RteHHtIoIsFiW8p2GyVxwNdmhLV6ZyD6pHLxsj-O\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will see a new entry for the event you just created. Click on the entry to cross-check the details and verify the event.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/F5Bw6MwWi0LbrE54J4MirB78HcvwrrNW1n62sIR2tNVpTtrrRlg5V35-7tO9kSLTAYM2KmHU-Fy_UkDwrPEm66iQR_8lslOLn13jdXAFj5f3bmu3JxBCGLlqF2lWRTSTY9XAnbWY\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will find all the details of the event you just created which states that the API has been integrated properly. Now click on the cancel button on the modal.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/KwXMZSmKKamV9JELOxQJBRysvZAXZOPGssa-3QjtdFCTuiGBRsi3vaJHUpJUdt70I72DsLNcEvAYtg4TIyuOwnJNZrf2abv1BGQ8MbDd4rjm9MRuhu5p1OJbNdjs1N7Xj7EVm33n\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Navigate to the application and create a new event.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/86_JjWBfDGcGelCNHLd-n-wf-qZ-ICtBIcP1HMsW2e34wVs8oSV-EcyS9qiE0wzLvErcX0YXnJnQLx973St-PagRI5pLpMusnLegQsu-b2dzHYmyl4sFguuSmcr9yyQFkbLIgWL6\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Navigate to the DynamoDB dashboard and hit refresh and you will see a new entry created.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/CjuzufqwKYEgxRYg-z2BvWi-9mcVkgsW_D53B6vI3vpz5siH4IEnKUDzQcFKV4nOtArE6dBMAWvNudGTRpsBSe8_fVyxaBY7Nw-y7p6JOkJNgoTsO7J5fTCN0oGTOK5fCgNVRZcz\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Click on the new entry to verify the event details. You can also export the data to a CSV file. Click on the cancel button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/mI6Dsl2EvcSZyZ9zsc1iT1O-fg3oWFOdJRLt7QAj9GAJvM__VIq0-yLF7HRs_LqWRb0jODOf277aCdgJ9cbd6m7UIgAYMCToytAhOapFR0s0tnJQBwkN4xLLEYJbEuZLpZ5lT-dV\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select all the entries in the table and click on Actions. Select Export to .csv and a csv file will be downloaded. Open the file to see the output in the csv format.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/iP9IxGJuSl-0Ja9cO8bOYO3-580VJ22xfPV1HTR2oVl74et5svpQZRranjnopgvF8NqlPU6RQivoKBihJW1eG51k3vq0nh03y4ECveKh900wZtHAsaBUBNpukld3gm4aL_4OIzQw\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">The table entry output in the csv format.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/oMgcAR-vQQqSCiHYYoQjNWuLfoiXRNge_yS1ZxT9iSUsR8ZPVdmmJlONmm2yo5tW8TWIQ_iiZDniWZ9mblWhTadEew09UkPm2MraXozUhUFB7Fk3JvQawkNoNXQVpuKhZvzjU6kW\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now let\u2019s test the delete API call for the newly created API. Navigate back to the React application. Click on Delete for an Event. Click on OK on the modal to confirm.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/yqDbPqVfZkLkzoinJjRw3RJoVHHtqGneB0mMWnKrbhUR_JAI_7m9_NwWqpSOhjn9kUlsHddBV4O7eHxx0byudV7Z_aI-Tfuf0fbgZu1DizQGXkI-OfTT-Bf9xl0f5qCzgkwWyT1z\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">The event will be deleted from the application home screen. Now, let\u2019s check it out on the DynamoDB dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/DrI3KUURvIfLuKlpyN6AlxBa1mR_zumxzU26AfHcFRSfqjTwkn4MHsxLFEvRcmuqc_1l8Uevgxv2fMiBgEeGLAqsq_X2Mwe8JM7E8-4t_LjhmO6yboLopwpoZVEinhmUQJgDNOTX\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Refresh the dashboard and that event entry will be deleted from the database.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/yBmB2X62P_XURlyA25xwrP-ZtfZ9RsAJ4gxbH92Z4sSwRolPiriDe09yVJ1nk9r-jyJmpHD9AuGXwH1WIZq30_zDa6lyRj4co7CBjdqFW1j7TiGgECCGTZUgTHqg4hifedFLIKex\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">The GraphQL query in the QueryAllEvents.js file looks as shown below. This query will fetch an array of event items, each containing an id along with some other information.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/ZfN5ls8yCuowwFnmOdl2OOvwchw6uFlTRlyZCdKMKZvt96r7i1DHw-ZhJLTo0m5iKUwEpr68ThjNVItfNf0FOsqGJc1C3AiqIkPhrmq0s3PkrFVs9bTo6pXn_w9MxsBQVc53esFb\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, where exactly is this data coming from? Navigate back to the AppSync console to see what\u2019s going on! Go to the dashboard for the events API and click on Schema in the left navigation pane that generated the API for us when we created the API. In this schema, we will see the correlating type called Event along with the listEvents query.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/lh6.googleusercontent.com\/_JZgMoRYJcywZTdhWtEY20kx9GhK9jE3_HJy6xZjew-aYTVT-F1lJjC5gtO6kqfcgxZGoeEuuFkRgb1AdlOUTx-ecN7NwBPwy4pGh6CvTVQrD8YJz72TF_7BhbanV-1hbV2Q1T8x\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-justify\">Now, how does the database deal with the queries and mutations? That\u2019s possible because of Resolvers. Resolvers offer a way to link database tables (in our case, DynamoDB) to individual queries and mutations.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/KOCpEvvIAYttBpMEHKUWiO63Msz5-XvXk5BnPc6ej2oh0bvDiFNN8pkioQ7USNsWnZnZ53EZ8ZT9oVjeXWC_yGFpenJPa-iyeWKP0iSqoFJAL68DLua329BAsNnbU2GvGQMWNgV_\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You can view, attach, and edit resolvers from the Schema view by either clicking on an existing resolver or clicking the Attach button next to an existing data type.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/lh3.googleusercontent.com\/PT3LTS6pVLtxfEM404zlEa5FqAuB_bUQrZuLD8-asUShzJBRLwmCQChdnklNTYKeKQoz2JIzplUbevxTzZE57SdHVXWWp9X4xp8TuR334_RM0w8RYAe7hiLF-T8TKnwPGOM7JhFW\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-justify\">Navigate to the Schema dashboard and you can also edit an existing schema or create a new one. Click on Create Resources.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/exLGElKeuYWR20qjs3q9yN10s8zV28kxMWlyX8Wt7wPZyuT3A4ZNyrF3jvkvc6Qj7P-tvFlX-hObMGoEf1t8mHOS-M2R-sA4eUlKysytLcw-QbOgQ6MZdamdzEdCTq9vt4OaebBr\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Over here you can create a new Schema based on your requirements.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/zHjnlnLtcHuYRyT12uTyLZu_Np8zR5Y5jI45GU4Sz2sFX74WfielfJPaNk9LU-KTEiwBNs5EvQ5pASHKPcg5qA1eIz2I68DUkSAOZV13YWyNf-xVFLlI7KyhdCGt5NE1lCPcmLGi\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Scroll down on the same page and you will see the types merged into your schema offered by GraphQL. Now click on the Queries tab in the left navigation pane.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/JOIe1fM7Y35ejFrEarWVlns3-aegM4pJS1-_UTY2yJVu_mshvTSF_nahYus3dYXd7o_IDSoXBkauQk_QjK6fxqZouiqmzZfLLB5g1_81c0Am8QdXUBkfT-vnmBkIgO4P7EwR4wVA\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Over here you can test your API execution by running the queries you like.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/_C9qxbXfFLgGN0MexnsmxNCZKitRgn17JSeCX47lp-OfGZzNRmoO8mA5GsR4-tfR2GBXcsCr6C7DiOWA1xh72zMZuLU8L85AMrgYs1on5MkK-nzX5fgUbarXD-xurNr0JL3mg-Xh\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">The middle column is where you can write your queries known as Mutations. A default mutation to create or list an event already exists in the text pane. Now click on the Play button and select ListEvents.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/RFR4b2ZMFikH8VSReECKg19Q94Uv5Fv3_xUI4VgnByHcnnwGEXS5r9TpFO7aZnuULFyLJ9rvE4KQT13ELezukfy7dPC9rK6r55i29ipYLl9_uVBQ7xsrJjF6-ORvhyIcGtQlhXpi\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">For the events you created on the react application above, you will see the output with the details of those events. To change the columns, you can edit the mutation based on your requirements.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/lh3.googleusercontent.com\/PwUQWZh0nyZTp9btawm1XWOcH2i7yzNUdJpKIJFPARLmzFXCZaDTkc07EMD-puxdC5JJYTi7wkpNSo54ilCxojscUdumBH3VvgmekMX_s508Kc_2AY1PgfPEQQqz2RXI_rdn6391\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-justify\">In the first column, you will get to see some events and the columns in the API schema created above. You can check the box for the columns you need to display in the final output.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/xooYdtABDyQw2TjIGN3vVOPhREyB3GEi_VaeIO4Otlcqwy2E3CuzNojO4ggBRnEJ_FY4tS0tukc_owmigAO2tnQFr3BUrZKLZsbVCPyLicHAKf2zlyzPJFY--t1smcYI61W9gHWO\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Click on the play button and select CreateEvent to create a new event. A new event will be created and the 3rd column will display the result of the executed query.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/lh4.googleusercontent.com\/YEzqTx_VJk0H1RzLaN-gpO78lmMUPaYsqZdJ2fnB0H5yjFuRSAh26NtBF95FL4VW8WFeZE5BcBbDx4DI6RUcPjVxpfOk8HtPYt2erRUlu9q8suYeLfXuFrQIraehZ-R0SyMrRcMc\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-justify\">Now again click on play and select ListEvents and you will see all the events in the 3rd column.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/lh5.googleusercontent.com\/fskXCUjST2MiUja44XZVlZbVDn2vCjnGSu30ME_3G7KzLeWmQmbW_De6ScdvjI_zodmh9gL-wE2wy_t6xw4ymnlkbAeoIqc5TtXOhkR3QbXpQrYBuPZfA0lf0uo9oPwE0SOWGB8p\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-justify\">Paste the below mutation in the 2nd column to test out the select query with the where clause.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/zCZBDGuY7NmzVS04ctTq1c_Z1Z1WH9PWGQpeVLQlbwpAWix4xix7i2A0F5X_OW6ArHr1HFlyQa7kGyHwA95uGJ5dsWbZ9rYFRmFusMOamIejfM0SSnpFKxaytDzkw3QdQdvPwRpw\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">In the 1st column check the column you wish to view in the output.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/lh3.googleusercontent.com\/1Gx_HInNKTLpKOc1Q0PkE_YexYUigBGd9VWO5nW3o7us7jGhHvqLboLisRZcy9AWgP6Tu9uQ36ZSXqILber6q5i7y9rigZf_PRgf5w5ahYzneZNNqap4pHBMt2NQeVe1WzrJbDsf\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-justify\">Hit the play button and you will see the query result output in the 3rd column displaying the results of the event you entered the id for.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/V_hl7hZ2Ug0ui14LSRJCtfRpynduKZUUWCrQ_nIHOVGE5NXVcVByZrFVAi-MzxNoiz3dhweQO_ALGq8P6k_3LhaFUIvglowFIa1KhhIS24LECznLtJ-E21IARe8ZtYagnCTUjNOb\" alt=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"\/><\/figure>\n\n\n\n<h2><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we explored the various features of AWS AppSync Service and also saw it in action for a business use case creating a new API endpoint that provisions a DynamoDB table and testing out the API via a react application. We also explored the DynamoDB Dashboard and executed some basic queries to test the functionality of the API. We will discuss more use cases of AWS AppSync in our upcoming blogs. Stay tuned to keep getting all updates about our upcoming new blogs on AWS and relevant technologies.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Meanwhile \u2026<\/p>\n\n\n\n<p class=\"has-text-align-justify\"><strong>Keep Exploring -&gt; Keep Learning -&gt; Keep Mastering<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">This blog is part of our effort towards building a knowledgeable and kick-ass tech community. At <a href=\"https:\/\/www.workfall.com\/\">Workfall<\/a>, we strive to provide the best tech and pay opportunities to AWS-certified talents. If you\u2019re looking to work with global clients, build kick-ass products while making big bucks doing so, give it a shot at<a href=\"https:\/\/www.workfall.com\/partner\/\"> workfall.com\/partner<\/a> today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">9<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span> In our previous blog How to create an API endpoint to provision a DynamoDB table using AWS AppSync? (Part 1), we have discussed AWS AppSync, its features, benefits, use cases, etc. In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":317,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[2],"tags":[85,86,3,4,87,6],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create an API endpoint to provision a DynamoDB table using AWS AppSync? - The Workfall Blog<\/title>\n<meta name=\"description\" content=\"In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync? - The Workfall Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"The Workfall Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/workfall\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-01T15:10:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-22T07:50:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@workfall\" \/>\n<meta name=\"twitter:site\" content=\"@workfall\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Workfall\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\",\"name\":\"Workfall - Hire #Kickass Coders On Demand\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/workfall\/\",\"https:\/\/www.linkedin.com\/company\/workfall\/\",\"https:\/\/facebook.com\/workfall\",\"https:\/\/twitter.com\/workfall\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"contentUrl\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"width\":400,\"height\":400,\"caption\":\"Workfall - Hire #Kickass Coders On Demand\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"name\":\"The Workfall Blog\",\"description\":\"#Tech #Remote #Jobs\",\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#primaryimage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png\",\"width\":1200,\"height\":628,\"caption\":\"Amazon AppSync - Integration with React Application\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#webpage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/\",\"name\":\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync? - The Workfall Blog\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#primaryimage\"},\"datePublished\":\"2021-11-01T15:10:21+00:00\",\"dateModified\":\"2025-08-22T07:50:49+00:00\",\"description\":\"In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.\",\"breadcrumb\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learning.workfall.com\/learning\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#webpage\"},\"author\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\"},\"headline\":\"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?\",\"datePublished\":\"2021-11-01T15:10:21+00:00\",\"dateModified\":\"2025-08-22T07:50:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#webpage\"},\"wordCount\":1705,\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png\",\"keywords\":[\"api\",\"appsync\",\"AWS\",\"Cloud\",\"dynamodb\",\"workfall\"],\"articleSection\":[\"AWS Cloud Computing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\",\"name\":\"Workfall\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"caption\":\"Workfall\"},\"sameAs\":[\"https:\/\/www.workfall.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create an API endpoint to provision a DynamoDB table using AWS AppSync? - The Workfall Blog","description":"In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/","og_locale":"en_US","og_type":"article","og_title":"How to create an API endpoint to provision a DynamoDB table using AWS AppSync? - The Workfall Blog","og_description":"In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.","og_url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/","og_site_name":"The Workfall Blog","article_publisher":"https:\/\/facebook.com\/workfall","article_published_time":"2021-11-01T15:10:21+00:00","article_modified_time":"2025-08-22T07:50:49+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@workfall","twitter_site":"@workfall","twitter_misc":{"Written by":"Workfall","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization","name":"Workfall - Hire #Kickass Coders On Demand","url":"https:\/\/learning.workfall.com\/learning\/blog\/","sameAs":["https:\/\/www.instagram.com\/workfall\/","https:\/\/www.linkedin.com\/company\/workfall\/","https:\/\/facebook.com\/workfall","https:\/\/twitter.com\/workfall"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","contentUrl":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","width":400,"height":400,"caption":"Workfall - Hire #Kickass Coders On Demand"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website","url":"https:\/\/learning.workfall.com\/learning\/blog\/","name":"The Workfall Blog","description":"#Tech #Remote #Jobs","publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#primaryimage","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png","width":1200,"height":628,"caption":"Amazon AppSync - Integration with React Application"},{"@type":"WebPage","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#webpage","url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/","name":"How to create an API endpoint to provision a DynamoDB table using AWS AppSync? - The Workfall Blog","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#primaryimage"},"datePublished":"2021-11-01T15:10:21+00:00","dateModified":"2025-08-22T07:50:49+00:00","description":"In this blog, we will discuss a business scenario to understand and create an API endpoint to provision a DynamoDB table using AWS AppSync.","breadcrumb":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learning.workfall.com\/learning\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?"}]},{"@type":"Article","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#article","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#webpage"},"author":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a"},"headline":"How to create an API endpoint to provision a DynamoDB table using AWS AppSync?","datePublished":"2021-11-01T15:10:21+00:00","dateModified":"2025-08-22T07:50:49+00:00","mainEntityOfPage":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#webpage"},"wordCount":1705,"publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png","keywords":["api","appsync","AWS","Cloud","dynamodb","workfall"],"articleSection":["AWS Cloud Computing"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a","name":"Workfall","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","caption":"Workfall"},"sameAs":["https:\/\/www.workfall.com"]}]}},"jetpack_featured_media_url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AppSync.png","jetpack-related-posts":[{"id":523,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-an-api-endpoint-to-provision-a-dynamodb-table-using-aws-appsync-part-1\/","url_meta":{"origin":316,"position":0},"title":"How to create an API endpoint to provision a DynamoDB table using AWS AppSync? (Part 1)","date":"November 10, 2021","format":false,"excerpt":"AppSync is an AWS-managed GraphQL layer that is built on the benefits of GraphQL and adds a few more cool features to its web and mobile SDKs. AppSync is the best of GraphQL with less complexity than before, which works out great for Serverless applications. You can refer to our\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS AppSync - Integration with React Application","src":"https:\/\/i0.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/CoverImages_1200x628px-1-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":322,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-create-publish-and-maintain-high-scalable-apis-using-aws-api-gateway\/","url_meta":{"origin":316,"position":1},"title":"How to create, publish and maintain high scalable APIs using AWS API Gateway?","date":"November 1, 2021","format":false,"excerpt":"To access data, business logic, and functionalities from backend services, API can act as an interface! Using API Gateway, we can enable two-way communication in real-time applications. In this blog, we will discuss Amazon API Gateway, its architecture, key concepts, use cases, and features. As part of hands-on, we will\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS API Gatway - Workfall","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/API-Gateway.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":221,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-migrate-rds-mysql-database-to-rds-postgresql-database-using-aws-database-migration-servicedms\/","url_meta":{"origin":316,"position":2},"title":"How to migrate RDS MySQL database to RDS PostgreSQL database using AWS Database Migration Service(DMS)?","date":"October 27, 2021","format":false,"excerpt":"Do you want to migrate data from one type of DB engine (MySQL) to another type of DB engine(PostgreSQL) with little or no downtime? In today's fast-paced environment, application, and database availability must be considered 24 hours a day, seven days a week. Some of your applications may be unable\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"AWS Database Migration Service","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/10\/DMS.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1498,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-etl-api-data-to-aws-s3-bucket-using-apache-airflow\/","url_meta":{"origin":316,"position":3},"title":"How to ETL API data to AWS S3 Bucket using Apache Airflow?","date":"November 1, 2022","format":false,"excerpt":"2.5 quintillion bytes of data are produced every day with 90% of it generated solely in the last 2 years (Source: Forbes). Data is pulled, cleaned, transfigured & then presented for analytical purposes & put to use in thousands of applications to fulfill consumer needs & more. While generating insights\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"How to ETL API data to AWS S3 Bucket using Apache Airflow?","src":"https:\/\/i0.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/11\/Cover-Images_Part2-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":394,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-enable-secure-access-to-the-aws-resources-using-aws-client-vpn\/","url_meta":{"origin":316,"position":4},"title":"How to enable secure access to the AWS resources using AWS Client VPN?","date":"November 3, 2021","format":false,"excerpt":"If you\u2019re looking for a solution that enables secure access to the AWS resources and also the servers hosted in the On-premise network you\u2019re reading the right blog! With the help of the Client VPN endpoint, you can allow users from any geographical location to access the resources in AWS\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Enable secure access to the AWS resources using AWS Client VPN","src":"https:\/\/i0.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/AWSClientVPN.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":614,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-do-database-migration-using-aws-database-migration-service-dms-from-on-premise-ec2-to-rds\/","url_meta":{"origin":316,"position":5},"title":"AWS DMS: Migrating On-Premise\/EC2 Databases to RDS Made Simple","date":"November 11, 2021","format":false,"excerpt":"Do you want to migrate your on-premise databases to AWS with minimal or no downtime? In today\u2019s fast-paced world,\u00a024\/7 application and database availability are the basic criteria to consider. In this case, some of your applications may not be able to afford significant downtime while migrating on-premises databases. In this\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Database Migration using AWS Database Migration Service (DMS)","src":"https:\/\/i0.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/DMS.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/316"}],"collection":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/comments?post=316"}],"version-history":[{"count":7,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":2534,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/316\/revisions\/2534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media\/317"}],"wp:attachment":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/categories?post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/tags?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}