CSV to Amazon DynamoDB

In this video, you will learn how to write records from CSV file into Amazon DynamoDB.

Read full transcript
  1. Hi! In this video, I will explain how to write records from a CSV file to Amazon DynamoDB.
  2. First, I create a Pipeline file and name it CSV to DynamoDB.
  3. Then I add the File Reader Snap; and open the Settings.
  4. And, select the file from which I want to read records.
  5. Next, I add a CSV Parser Snap;
  6. And, save the Pipeline so that it gets validated.
  7. I open the data preview of the CSV Parser. The file contains records pertaining to books and the price field is of number type and all the remaining fields are of string type in DynamoDB.
  8. Next, I add a Mapper Snap and configure the Settings;
  9. I add all the fields in the Expression column and Target path column;
  10. In case of DynamoDB, in the target path column, we must prepend ‘$PutRequest.Item’ and append the DynamoDB type. Because values in the price column are of number type, I append N. And, because all the remaining columns are of string type, I append S.
  11. Then, I add the DynamoDB Bulk Write Snap and select the DynamoDB account that contains the table to which I want to write data;
  12. Then I open the DynamoDB Bulk Write Snap settings;
  13. Select the table to which I want to write data and save it.
  14. Before I execute the Pipeline, I open Eclipse which has been configured to display data in the table selected earlier. The table should be empty.
  15. Now we go back to the Designer and execute the Pipeline manually.
  16. I open ‘Pipeline Execution Statistics’.
  17. There are 9 records have been written to DynamoDB.
  18. I return to Eclipse and run a scan.
  19. And we see that the table contains 9 records.
  20. In this demo, I showed how SnapLogic makes it easy to extract records from files and write them to DynamoDB.
  21. Thank you for watching this demo! Visit docs-snaplogic.atlassian.net to learn about more features.

Analyst Report

451 Research: SnapLogic eyes international growth with iPaaS updates and…

Read Now

Analyst Report

Gartner Names SnapLogic a Leader in the 2018 Enterprise iPaaS…

Read Now

Case Study

Turning data into decisions at Pure Storage

Read Now
Contact Us Free Trial