terraform initterraform apply- go to the resulting URL
- cleanup:
terraform destroy
There are 3 examples in the code, and you need to uncomment the one you'd like to inspect.
This is the default, it uses the HEREDOC syntax to define the Lambda code.
Comment out the default example and uncomment the second example codes. This loads the main.js and the index.html files.
Comment out the default, run npm ci in the src directory, then uncomment the third example. This zips the whole src directory and the node_modules with it, allowing the use of arbitrary npm dependencies.
In this case, it's using Mustache to render the HTML.