Home / Companies / Couchbase / Blog / Post Details
Content Deep Dive

Microservice using AWS API Gateway, AWS Lambda and Couchbase

Blog post from Couchbase

Post Details
Company
Date Published
Author
Arun Gupta, VP, Developer Advocacy, Couchbase
Word Count
1,867
Language
English
Hacker News Points
-
Summary

This blog explains how to create a simple microservice using Amazon API Gateway, AWS Lambda and Couchbase. It covers the key components in this architecture, including client tools that can invoke REST endpoints, provisioning APIs through API Gateway, and creating two Lambda functions: `book-list` function for listing all books available and `book-create` function to create a new book. The blog also creates an IAM role with policies and trust relationships that allow this role to be used in API Gateway and execute Lambda function. It shows how to deploy the microservice and test it using API Gateway, including creating HTTP POST and GET methods and granting permissions to the deployed API. Finally, it discusses how to use Couchbase Node.js SDK v2.6.3 with AWS Lambda.