Skip to content

Examples of serverless Lambda functions integrated with API Gateway and CORS enabled

Notifications You must be signed in to change notification settings

dabit3/api-gateway-lambda-in-various-runtimes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples of various Lambda function integrations with API Gateway and CORS enabled

Why? When working with Lambda functions, there are various different things to take into consideration.

  • Is this function being invoked from an HTTP trigger?
  • Is this function using API Gateway?
  • Are you calling this function from a client-side application?
  • Are you running into CORS issues when fetching data from your Lambda function?

If you answered yes to these questions, then these copy-paste examples should help you to get up and running with many of the most popular runtimes.

Here are the supported runtimes that I will be creating examples for:

Go

main.go

Python

index.py

.Net

handler.cs

NodeJS / JavaScript

index.js

Java

handler.java

Check out this serverless example for a full Java implementation

More examples

For more examples of Lambda integrations in different languages, check out the Serverless Examples

About

Examples of serverless Lambda functions integrated with API Gateway and CORS enabled

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages