-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use Terraform 0.12 Beta 1 * Upgrade to config to HCL2 and Heroku provider 1.8.0-dev (included) * Configure & ensure the workspace exists * 📚 0.12 Beta 1 info
- Loading branch information
Showing
7 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+21.8 MB
.terraform.d/plugins/darwin_amd64/terraform-provider-heroku_v1.8.0-dev20190216H00-dev_x4
Binary file not shown.
Binary file added
BIN
+20 MB
.terraform.d/plugins/linux_amd64/terraform-provider-heroku_v1.8.0-dev20190216H00-dev_x4
Binary file not shown.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
terraform { | ||
backend "pg" {} | ||
backend "pg" { | ||
} | ||
} | ||
|
||
provider "heroku" { | ||
version = "~> 1.7" | ||
} | ||
|
||
variable "example_app_name" { | ||
description = "Name of the Heroku app provisioned as an example" | ||
} | ||
|
||
resource "heroku_app" "example" { | ||
name = "${var.example_app_name}" | ||
name = var.example_app_name | ||
region = "us" | ||
} | ||
|
||
resource "heroku_build" "example" { | ||
app = "${heroku_app.example.name}" | ||
app = heroku_app.example.name | ||
|
||
source = { | ||
path = "app/" | ||
} | ||
} | ||
|
||
resource "heroku_formation" "example" { | ||
app = "${heroku_app.example.name}" | ||
app = heroku_app.example.name | ||
type = "web" | ||
quantity = 1 | ||
size = "Standard-1x" | ||
depends_on = ["heroku_build.example"] | ||
depends_on = [heroku_build.example] | ||
} | ||
|
||
output "example_app_url" { | ||
value = "https://${heroku_app.example.name}.herokuapp.com" | ||
} | ||
|
||
output "example_app_build_log_url" { | ||
value = "${heroku_build.example.output_stream_url}" | ||
value = heroku_build.example.output_stream_url | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.12" | ||
} |