Skip to content

Basic Terraform Heroku example for demo purposes

License

Notifications You must be signed in to change notification settings

Niedziela-Solutions/terraform-heroku-demo

Repository files navigation

Terraform Heroku Demo

Basic Terraform script to show its Heroku power. Spins up an empty stack with a Ruby buildpack.

Similar setup to our S3 Static Website Terraform Scripts.

Requirements

Usage

  1. terraform init - This will pull in the Heroku Terraform provider.
  2. cp environment.tfvars.example environment.tfvars and change as needed (see Variable Settings section)
  3. Verify: terraform plan -var-file=environment.tfvars
  4. Invoke: terraform apply -var-file=environment.tfvars

Other Helpful Commands

  • Destroy: terraform destroy -var-file=environment.tfvars

Variable Settings

app_name = "YOUR_APP_NAME"
secret_key_base = "Rails SECRET_KEY_BASE"
heroku_stack = "heroku-20"

Resources

About

Basic Terraform Heroku example for demo purposes

Topics

Resources

License

Stars

Watchers

Forks

Languages