Skip to content

A simple Hello World server deployed onto Heroku using Terraform

Notifications You must be signed in to change notification settings

HilliamT/terraform-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-hello-world

A simple Hello World server deployed onto Heroku using Terraform.

File Structure

.
├─ 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

Quickstart

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.

Resources

Here are several resources to extend the functionality of this simple example.

About

A simple Hello World server deployed onto Heroku using Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published