website: Document Heroku
This commit is contained in:
parent
6ba042a8f5
commit
561ffc16b3
|
@ -12,9 +12,14 @@ services to a Heroku app.
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# Create a new heroku app
|
||||||
|
resource "heroku_app" "default" {
|
||||||
|
name = "test-app"
|
||||||
|
}
|
||||||
|
|
||||||
# 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.foobar.name}"
|
app = "${heroku_app.default.name}"
|
||||||
plan = "deployhooks:http"
|
plan = "deployhooks:http"
|
||||||
config {
|
config {
|
||||||
url = "http://google.com"
|
url = "http://google.com"
|
||||||
|
@ -27,7 +32,7 @@ resource "heroku_addon" "webhook" {
|
||||||
The following arguments are supported:
|
The following arguments are supported:
|
||||||
|
|
||||||
* `app` - (Required) The Heroku app to add to.
|
* `app` - (Required) The Heroku app to add to.
|
||||||
* `plan` - (Requried) The addon to add.
|
* `plan` - (Required) The addon to add.
|
||||||
* `config` - (Optional) Optional plan configuration.
|
* `config` - (Optional) Optional plan configuration.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
---
|
||||||
|
layout: "heroku"
|
||||||
|
page_title: "Heroku: heroku_app"
|
||||||
|
sidebar_current: "docs-heroku-resource-app"
|
||||||
|
---
|
||||||
|
|
||||||
|
# heroku\_app
|
||||||
|
|
||||||
|
Provides a Heroku App resource. This can be used to
|
||||||
|
create and manage applications on Heroku.
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
# Create a new heroku app
|
||||||
|
resource "heroku_app" "default" {
|
||||||
|
name = "my-cool-app"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Argument Reference
|
||||||
|
|
||||||
|
The following arguments are supported:
|
||||||
|
|
||||||
|
* `name` - (Optional) The name of the Heroku app
|
||||||
|
* `region` - (Optional) The region of the Heroku app
|
||||||
|
* `stack` - (Optional) The stack for the Heroku app
|
||||||
|
* `config_vars` - (Optional) Configuration variables for the app
|
||||||
|
|
||||||
|
## Attributes Reference
|
||||||
|
|
||||||
|
The following attributes are exported:
|
||||||
|
|
||||||
|
* `id` - The ID of the app
|
||||||
|
* `name` - The name of the app
|
||||||
|
* `stack` - The stack of the app
|
||||||
|
* `region` - The region of the app
|
||||||
|
* `git_url` - The Git URL for the app
|
||||||
|
* `web_url` - The Web URL for the app
|
||||||
|
* `heroku_hostname` - The Heroku URL for the app
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
---
|
||||||
|
layout: "heroku"
|
||||||
|
page_title: "Heroku: heroku_domain"
|
||||||
|
sidebar_current: "docs-heroku-resource-domain"
|
||||||
|
---
|
||||||
|
|
||||||
|
# heroku\_domain
|
||||||
|
|
||||||
|
Provides a Heroku App resource. This can be used to
|
||||||
|
create and manage applications on Heroku.
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
# Create a new heroku app
|
||||||
|
resource "heroku_app" "default" {
|
||||||
|
name = "test-app"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Associate a custom domain
|
||||||
|
resource "heroku_domain" "default" {
|
||||||
|
app = "${heroku_app.default.name}"
|
||||||
|
hostname = "terraform.example.com"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Argument Reference
|
||||||
|
|
||||||
|
The following arguments are supported:
|
||||||
|
|
||||||
|
* `hostname` - (Required) The hostname to serve requests from.
|
||||||
|
* `app` - (Required) The Heroku app to link to.
|
||||||
|
|
||||||
|
## Attributes Reference
|
||||||
|
|
||||||
|
The following attributes are exported:
|
||||||
|
|
||||||
|
* `id` - The ID of the of the domain record
|
||||||
|
* `hostname` - The hostname traffic will be served as
|
||||||
|
* `cname` - The cname traffic should route to.
|
||||||
|
|
Loading…
Reference in New Issue