Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.01 KB

File metadata and controls

40 lines (27 loc) · 1.01 KB

Node Terraform

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