A simple Hello World server deployed onto Heroku using Terraform.
.
├─ Dockerfile - Dockerfile to run a Node.js Hello World app
├─ heroku.yml - Heroku configuration to run container
├─ README.md - This file!
├─ terraform.tf — Terraform configuration
├─ terraform.tfvars — Terraform variables go here
To begin, populate terraform.tfvars
with the following variables:
heroku_account_email = "your_heroku_account_email"
heroku_api_key = "your_heroku_api_key"
heroku_app_name = "your_heroku_app_name"
Then run terraform init
and terraform apply
.
You'll then be able to hop onto http://$HEROKU_APP_NAME.herokuapp.com
and see your application running.
You can run terraform destroy
to remove the application.
Here are several resources to extend the functionality of this simple example.