Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 2.21 KB

File metadata and controls

35 lines (25 loc) · 2.21 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
make ready

Run

make init
make deploy
make test

Notes

Use tfswitch or tfenv to install the required provider version