An example deploying a Node Serverless function using Terraform. The function is a simple rss feed that filters the content of a source feed and returns the filtered content.
Run the function locally:
cd function
npm install --include=dev
npm startIn another terminal, you can the following command to test the function:
curl http://localhost:8081Deploy the function using Terraform:
terraform init
terraform applyThe function is a rss feed that can be accessed via a RSS reader. The URL of the feed is displayed in the output of the Terraform apply command.
terraform destroy