Skip to content

Commit

Permalink
Merge pull request #50 from girder/heroku-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba authored Sep 1, 2022
2 parents 410d0ac + 70e3dd2 commit e9eed35
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
36 changes: 18 additions & 18 deletions examples/basic/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions modules/heroku/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,35 @@ resource "heroku_app" "heroku" {
}

resource "heroku_formation" "heroku_web" {
app = heroku_app.heroku.id
app_id = heroku_app.heroku.id
type = "web"
size = var.web_dyno_size
quantity = var.web_dyno_quantity
}

resource "heroku_formation" "heroku_worker" {
app = heroku_app.heroku.id
app_id = heroku_app.heroku.id
type = "worker"
size = var.worker_dyno_size
quantity = var.worker_dyno_quantity
}

resource "heroku_addon" "heroku_postgresql" {
app = heroku_app.heroku.id
plan = "heroku-postgresql:${var.postgresql_plan}"
app_id = heroku_app.heroku.id
plan = "heroku-postgresql:${var.postgresql_plan}"
}

resource "heroku_addon" "heroku_cloudamqp" {
app = heroku_app.heroku.id
plan = "cloudamqp:${var.cloudamqp_plan}"
app_id = heroku_app.heroku.id
plan = "cloudamqp:${var.cloudamqp_plan}"
}

resource "heroku_addon" "heroku_papertrail" {
app = heroku_app.heroku.id
plan = "papertrail:${var.papertrail_plan}"
app_id = heroku_app.heroku.id
plan = "papertrail:${var.papertrail_plan}"
}

resource "heroku_domain" "heroku" {
app = heroku_app.heroku.id
app_id = heroku_app.heroku.id
hostname = var.fqdn
}
3 changes: 2 additions & 1 deletion modules/heroku/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ terraform {

required_providers {
heroku = {
source = "heroku/heroku"
source = "heroku/heroku"
version = ">= 5.0.0"
}
}
}

0 comments on commit e9eed35

Please sign in to comment.