-
-
Save rujmah/71fff9195c82750540e0d53b658da56b to your computer and use it in GitHub Desktop.
Terraform heroku example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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