This commit is contained in:
Bernerd Schaefer 2017-04-24 17:42:54 -07:00
parent dbf82e651e
commit de54855f63
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,48 @@
---
layout: "heroku"
page_title: "Heroku: heroku_space"
sidebar_current: "docs-heroku-resource-space"
description: |-
Provides a Heroku Space resource for running apps in isolated, highly available, secure app execution environments.
---
# heroku\_space
Provides a Heroku Space resource for running apps in isolated, highly available, secure app execution environments.
## Example Usage
```hcl
# Create a new Heroku space
resource "heroku_space" "default" {
name = "test-space"
organization = "my-company"
region = "virginia"
}
# Create a new Heroku app in test-space
resource "heroku_app" "default" {
name = "test-app"
space = "${heroku_space.default.name}"
organization = {
name = "my-company"
}
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The name of the space.
* `organization` - (Required) The name of the organization which will own the space.
* `region` - (Optional) The region that the space should be created in.
## Attributes Reference
The following attributes are exported:
* `id` - The ID of the space.
* `name` - The space's name.
* `plan` - The space's organization.
* `region` - The space's region.

View File

@ -32,6 +32,10 @@
<li<%= sidebar_current("docs-heroku-resource-drain") %>>
<a href="/docs/providers/heroku/r/drain.html">heroku_drain</a>
</li>
<li<%= sidebar_current("docs-heroku-resource-space") %>>
<a href="/docs/providers/heroku/r/space.html">heroku_space</a>
</li>
</ul>
</li>
</ul>