Skip to content

Instantly share code, notes, and snippets.

@sunnyone
Created April 13, 2015 02:30
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sunnyone/878fb959925ba0fbd1aa to your computer and use it in GitHub Desktop.
Save sunnyone/878fb959925ba0fbd1aa to your computer and use it in GitHub Desktop.
Terraform heroku example
provider "heroku" {
email = "test@example.com"
api_key = "call heroku auth:token"
}
resource "heroku_app" "default" {
name = "herokutest"
region = "us"
config_vars {
CONFIG_TEST_URL = "http://www.example.com"
}
}
resource "heroku_addon" "database" {
app = "${heroku_app.default.name}"
plan = "heroku-postgresql:hobby-dev"
}
resource "heroku_addon" "newrelic" {
app = "${heroku_app.default.name}"
plan = "newrelic:stark"
}
resource "heroku_addon" "papertrail" {
app = "${heroku_app.default.name}"
plan = "papertrail"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment