2017-04-25 02:42:54 +02:00
|
|
|
---
|
|
|
|
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
|
2017-04-26 00:27:01 +02:00
|
|
|
// Create a new Heroku space
|
2017-04-25 02:42:54 +02:00
|
|
|
resource "heroku_space" "default" {
|
|
|
|
name = "test-space"
|
|
|
|
organization = "my-company"
|
|
|
|
region = "virginia"
|
|
|
|
}
|
|
|
|
|
2017-04-26 00:27:01 +02:00
|
|
|
// Create a new Heroku app in test-space
|
2017-04-25 02:42:54 +02:00
|
|
|
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.
|
2017-04-25 02:50:52 +02:00
|
|
|
* `organization` - The space's organization.
|
2017-04-25 02:42:54 +02:00
|
|
|
* `region` - The space's region.
|