Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redeux/terraform-run-task-hello-world-nodejs
A Terraform Cloud Run Task Hello World in Node.js
https://github.com/redeux/terraform-run-task-hello-world-nodejs
Last synced: 27 days ago
JSON representation
A Terraform Cloud Run Task Hello World in Node.js
- Host: GitHub
- URL: https://github.com/redeux/terraform-run-task-hello-world-nodejs
- Owner: redeux
- License: mit
- Created: 2022-04-05T13:52:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-07T22:22:55.000Z (over 2 years ago)
- Last Synced: 2023-02-28T20:42:54.874Z (over 1 year ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-run-task-hello-world-nodejs
A Terraform Cloud Run Task Hello World in Node.jsThis is a basic implementation of a Terraform Cloud Run Task in Node.js. Run easily with [NGROK](https://ngrok.com/) or in [Heroku](https://www.heroku.com/).
## 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](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).```
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
```bash
ngrok http $PORT
```