Skip to content

Instantly share code, notes, and snippets.

@hstove
Created July 31, 2014 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hstove/2dbd8830d83b8782f67f to your computer and use it in GitHub Desktop.
Save hstove/2dbd8830d83b8782f67f to your computer and use it in GitHub Desktop.
terraform test file
variable "heroku_api_key" {}
variable "heroku_app_name" {}
# Configure the Heroku provider
provider "heroku" {
email = "hstove@gmail.com"
api_key = "${var.heroku_api_key}"
}
# Create a new applicaiton
resource "heroku_app" "default" {
name = "{$var.heroku_app_name}"
}
resource "heroku_addon" "sendgrid" {
app = "${heroku_app.default.name}"
plan = "sendgrid:starter"
}
resource "heroku_addon" "memcachier" {
app = "${heroku_app.default.name}"
plan = "memcachier:dev"
}
resource "heroku_addon" "newrelic" {
app = "${heroku_app.default.name}"
plan = "newrelic:wayne"
}
resource "heroku_addon" "backups" {
app = "${heroku_app.default.name}"
plan = "pgbackups:plus"
}
resource "heroku_addon" "redis" {
app = "${heroku_app.default.name}"
plan = "redistogo:nano"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment