github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/heroku/r/space.html.markdown (about)

     1  ---
     2  layout: "heroku"
     3  page_title: "Heroku: heroku_space"
     4  sidebar_current: "docs-heroku-resource-space"
     5  description: |-
     6    Provides a Heroku Space resource for running apps in isolated, highly available, secure app execution environments.
     7  ---
     8  
     9  # heroku\_space
    10  
    11  Provides a Heroku Space resource for running apps in isolated, highly available, secure app execution environments.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  // Create a new Heroku space
    17  resource "heroku_space" "default" {
    18    name = "test-space"
    19    organization = "my-company"
    20    region = "virginia"
    21  }
    22  
    23  // Create a new Heroku app in test-space
    24  resource "heroku_app" "default" {
    25    name = "test-app"
    26    space = "${heroku_space.default.name}"
    27    organization = {
    28      name = "my-company"
    29    }
    30  }
    31  ```
    32  
    33  ## Argument Reference
    34  
    35  The following arguments are supported:
    36  
    37  * `name` - (Required) The name of the space.
    38  * `organization` - (Required) The name of the organization which will own the space.
    39  * `region` - (Optional) The region that the space should be created in.
    40  
    41  ## Attributes Reference
    42  
    43  The following attributes are exported:
    44  
    45  * `id` - The ID of the space.
    46  * `name` - The space's name.
    47  * `organization` - The space's organization.
    48  * `region` - The space's region.