This is a Next.js project bootstrapped with create-next-app.
It is not exactly a build, it only creates a zip file containing the Python file. The zip file is then used in the Terraform scripts.
cd backend/lambda
./build.shcd backend/terraform
terraform applyThe scripts creates:
- IAM Policy & Role for the Lambda function
- A SQS queue to trigger the Lambda in an event-driven way
- A lambda function using the zip file created at step 1.
This is just a quick example, the state is stored locally, and there are variables.
You can simply copy the provided .env.example file and save it as .env
cp .env.example .envpnpm devOpen http://localhost:3000 with your browser to see the result.