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

Guide to Serverless Security with AWS Lambda Plugin

Blog post from Kong

Post Details
Company
Date Published
Author
Alvin Lee
Word Count
2,371
Language
English
Hacker News Points
-
Summary

For developers who prefer to focus on coding rather than infrastructure management, AWS Lambda offers a streamlined solution for deploying and executing serverless functions, allowing them to write modular code without worrying about resource allocation. However, integrating serverless security can be complex, particularly with AWS API Gateway, but using Kong Gateway simplifies this process by acting as an intermediary for API requests. This detailed guide outlines a mini-project that involves creating a simple Node.js function, deploying it on AWS Lambda, and configuring Kong Gateway with the AWS Lambda plugin to handle secure API requests efficiently. The setup includes writing a declarative configuration file for Kong, obtaining and managing AWS IAM credentials for secure function invocation, and modifying the setup to include the AWS Lambda plugin for request handling. The guide also covers potential enhancements, such as asynchronous calls and request transformation before invocation, emphasizing the ease and flexibility Kong Gateway provides in managing serverless functions with AWS Lambda while ensuring adherence to security best practices.