From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Using Lambda integrations

Using Lambda integrations

- We are now going to modify the API that we just deployed and we're going to integrate some of those methods associated with resources to a Lambda function on the backend. In our repository directory, we have API gateway to underscore API gateway with Lambda. In this I have four directories. We're going to create a DynamoDB table, we're going to put some data into it. We're going to create a Lambda function. We're going to manipulate our API in order to reference that Lambda function. And then finally we will test it. Let's head into the one create table directory. And here I have app py and pets JSON pets. JSON is simply an array of dictionaries. We have type dog breed Labrador price 25 and we have 20 pets that we're going to stick into our table. We look at app py, I've already configured it. We are going to create a DynamoDB client object. We're going to create a table, wait for it to be active. Takes about seven seconds and then we are going to pull the data from pets, JSON, into…

Contents