Node Terraform
October 9, 2024 ยท View on GitHub
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.
Requirements
Usage
Run the function locally:
cd function
npm install --include=dev
npm start
In another terminal, you can the following command to test the function:
curl http://localhost:8081
Deploy the function using Terraform:
terraform init
terraform apply
The 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.
Cleanup
terraform destroy