From the course: Introduction to Data Engineering on AWS: Data Sourcing and Storage

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Lab: Create DynamoDB tables via Python script

Lab: Create DynamoDB tables via Python script

- [Instructor] Now let's learn to interact with DynamoDB in a programmatic way. Now, since Python is the most preferred scripting language for data engineers, let's learn to use Python SDK. So in Python, Boto3 is the SDK to interact with AWS. So needless to say, you will need to install Python as well as Boto3. Now let's switch to our editor. Here, I'm using Visual Studio Code as my editor but you are free to use any editor of your choice. So here, I am in folder DynamoDB scripts under my GitHub. So here if you notice, I have couple of scripts with extension .py. These are the Python script. To execute these scripts, we will need to ensure that AWS CLI is configured and Python is installed. Let's quickly verify that. So, yeah, CLI is configured and now let's check the Python. So we can check it using Python version. So we can see Python 3 is installed here, so we should be good to go. Now let's check this script. What…

Contents