Skip to content

Commit 561ffc1

Browse files
committed
website: Document Heroku
1 parent 6ba042a commit 561ffc1

3 files changed

Lines changed: 89 additions & 2 deletions

File tree

website/source/docs/providers/heroku/r/addon.html.markdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ services to a Heroku app.
1212
## Example Usage
1313

1414
```
15+
# Create a new heroku app
16+
resource "heroku_app" "default" {
17+
name = "test-app"
18+
}
19+
1520
# Add a web-hook addon for the app
1621
resource "heroku_addon" "webhook" {
17-
app = "${heroku_app.foobar.name}"
22+
app = "${heroku_app.default.name}"
1823
plan = "deployhooks:http"
1924
config {
2025
url = "http://google.com"
@@ -27,7 +32,7 @@ resource "heroku_addon" "webhook" {
2732
The following arguments are supported:
2833

2934
* `app` - (Required) The Heroku app to add to.
30-
* `plan` - (Requried) The addon to add.
35+
* `plan` - (Required) The addon to add.
3136
* `config` - (Optional) Optional plan configuration.
3237

3338
## Attributes Reference
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: "heroku"
3+
page_title: "Heroku: heroku_app"
4+
sidebar_current: "docs-heroku-resource-app"
5+
---
6+
7+
# heroku\_app
8+
9+
Provides a Heroku App resource. This can be used to
10+
create and manage applications on Heroku.
11+
12+
## Example Usage
13+
14+
```
15+
# Create a new heroku app
16+
resource "heroku_app" "default" {
17+
name = "my-cool-app"
18+
}
19+
```
20+
21+
## Argument Reference
22+
23+
The following arguments are supported:
24+
25+
* `name` - (Optional) The name of the Heroku app
26+
* `region` - (Optional) The region of the Heroku app
27+
* `stack` - (Optional) The stack for the Heroku app
28+
* `config_vars` - (Optional) Configuration variables for the app
29+
30+
## Attributes Reference
31+
32+
The following attributes are exported:
33+
34+
* `id` - The ID of the app
35+
* `name` - The name of the app
36+
* `stack` - The stack of the app
37+
* `region` - The region of the app
38+
* `git_url` - The Git URL for the app
39+
* `web_url` - The Web URL for the app
40+
* `heroku_hostname` - The Heroku URL for the app
41+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: "heroku"
3+
page_title: "Heroku: heroku_domain"
4+
sidebar_current: "docs-heroku-resource-domain"
5+
---
6+
7+
# heroku\_domain
8+
9+
Provides a Heroku App resource. This can be used to
10+
create and manage applications on Heroku.
11+
12+
## Example Usage
13+
14+
```
15+
# Create a new heroku app
16+
resource "heroku_app" "default" {
17+
name = "test-app"
18+
}
19+
20+
# Associate a custom domain
21+
resource "heroku_domain" "default" {
22+
app = "${heroku_app.default.name}"
23+
hostname = "terraform.example.com"
24+
}
25+
```
26+
27+
## Argument Reference
28+
29+
The following arguments are supported:
30+
31+
* `hostname` - (Required) The hostname to serve requests from.
32+
* `app` - (Required) The Heroku app to link to.
33+
34+
## Attributes Reference
35+
36+
The following attributes are exported:
37+
38+
* `id` - The ID of the of the domain record
39+
* `hostname` - The hostname traffic will be served as
40+
* `cname` - The cname traffic should route to.
41+

0 commit comments

Comments
 (0)