From the course: Automating Document Processing with AI in AWS

Unlock this course with a free trial

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

Expose DynamoDB data securely via AWS API Gateway

Expose DynamoDB data securely via AWS API Gateway - Amazon Web Services (AWS) Tutorial

From the course: Automating Document Processing with AI in AWS

Expose DynamoDB data securely via AWS API Gateway

- [Instructor] It's time to create an AWS API Gateway REST API, to interact with our DynamoDB table job applications. We'll configure a GET method to scan all items in the table and a POST method to update the status attribute of a specific application. Let's start by going over to Identity and Access Management to create a role for API Gateway to access our DynamoDB table. Under Access management, let's click Roles. And under Roles, we'll click Create role. For the Trusted Entity, we'll select AWS service and our use case will be API Gateway. Let's click Next. Next again for add permissions, and we'll name this role Document-Processing-API-Gateway-Role. We'll scroll down to the bottom and click Create role. Now let's find the role, select it, and we'll need to create a policy specifically for our DynamoDB table. So let's go over to Add permissions and create inline policy. We'll select JSON as our editor. And we'll copy over our policy from our GitHub repo, and paste it in the…

Contents