Merge pull request #1346 from hashicorp/docs-improvements
providers/heroku: Documentation improvements
This commit is contained in:
commit
7e4d697a79
|
@ -33,6 +33,8 @@ resource "heroku_app" "default" {
|
||||||
|
|
||||||
The following arguments are supported:
|
The following arguments are supported:
|
||||||
|
|
||||||
* `api_key` - (Required) Heroku API token
|
* `api_key` - (Required) Heroku API token. It must be provided, but it can also
|
||||||
* `email` - (Required) Email to be notified by Heroku
|
be sourced from the `HEROKU_API_KEY` environment variable.
|
||||||
|
* `email` - (Required) Email to be notified by Heroku. It must be provided, but
|
||||||
|
it can also be sourced from the `HEROKU_EMAIL` environment variable.
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,12 @@ resource "heroku_app" "default" {
|
||||||
name = "test-app"
|
name = "test-app"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Create a database, and configure the app to use it
|
||||||
|
resource "heroku_addon" "database" {
|
||||||
|
app = "${heroku_app.default.name}"
|
||||||
|
plan = "heroku-postgresql:hobby-basic"
|
||||||
|
}
|
||||||
|
|
||||||
# Add a web-hook addon for the app
|
# Add a web-hook addon for the app
|
||||||
resource "heroku_addon" "webhook" {
|
resource "heroku_addon" "webhook" {
|
||||||
app = "${heroku_app.default.name}"
|
app = "${heroku_app.default.name}"
|
||||||
|
|
|
@ -17,6 +17,7 @@ create and manage applications on Heroku.
|
||||||
# Create a new Heroku app
|
# Create a new Heroku app
|
||||||
resource "heroku_app" "default" {
|
resource "heroku_app" "default" {
|
||||||
name = "my-cool-app"
|
name = "my-cool-app"
|
||||||
|
region = "us"
|
||||||
|
|
||||||
config_vars {
|
config_vars {
|
||||||
FOOBAR = "baz"
|
FOOBAR = "baz"
|
||||||
|
|
Loading…
Reference in New Issue