gautambaghel / terraform-run-task-hello-world-nodejs

A Terraform Cloud Run Task Hello World in Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-run-task-hello-world-nodejs

A Terraform Cloud Run Task Hello World in Node.js

This is a basic implementation of a Terraform Cloud Run Task in Node.js. Run easily with NGROK or in Heroku.

Getting Started Locally

Make sure you have Node.js v16.x and NPM v8.6. You can find the Node.js and NPM installation instructions here.

node -v
npm -v

Install the Run Task server dependencies

npm install

Start the Run Task server

npm start

NOTE: By default, the service will start using port 3000 and using an HMAC key of abc123. These can be set using the environment variables PORT and HMAC_KEY respectively.

Start NGROK using the port you specified

ngrok http $PORT

About

A Terraform Cloud Run Task Hello World in Node.js

License:MIT License


Languages

Language:JavaScript 99.8%Language:Procfile 0.2%