Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 2.09 KB

File metadata and controls

33 lines (23 loc) · 2.09 KB

API Gateway lambda CORS

LocalStack AWS

This sample shows how to create a lambda function and expose it through an API Gateway that creates a CORS enabled response.

Prerequisites

Start LocalStack

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start

Run

make init
make deploy
make test

Notes

Use tfswitch or tfenv to install the required provider version