github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/website/source/docs/providers/heroku/r/app.html.markdown (about)

     1  ---
     2  layout: "heroku"
     3  page_title: "Heroku: heroku_app"
     4  sidebar_current: "docs-heroku-resource-app"
     5  description: |-
     6    Provides a Heroku App resource. This can be used to create and manage applications on Heroku.
     7  ---
     8  
     9  # heroku\_app
    10  
    11  Provides a Heroku App resource. This can be used to
    12  create and manage applications on Heroku.
    13  
    14  ## Example Usage
    15  
    16  ```
    17  # Create a new Heroku app
    18  resource "heroku_app" "default" {
    19      name = "my-cool-app"
    20  
    21      config_vars {
    22          FOOBAR = "baz"
    23      }
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `name` - (Required) The name of the application. In Heroku, this is also the
    32     unique ID, so it must be unique and have a minimum of 3 characters.
    33  * `region` - (Required) The region that the app should be deployed in.
    34  * `stack` - (Optional) The application stack is what platform to run the application
    35     in.
    36  * `config_vars` - (Optional) Configuration variables for the application.
    37       The config variables in this map are not the final set of configuration
    38       variables, but rather variables you want present. That is, other
    39       configuration variables set externally won't be removed by Terraform
    40       if they aren't present in this list.
    41  * `organization` - (Optional) A block that can be specified once to define
    42       organization settings for this app. The fields for this block are
    43       documented below.
    44  
    45  The `organization` block supports:
    46  
    47  * `name` (string) - The name of the organization.
    48  * `locked` (boolean)
    49  * `personal` (boolean)
    50  
    51  ## Attributes Reference
    52  
    53  The following attributes are exported:
    54  
    55  * `id` - The ID of the app. This is also the name of the application.
    56  * `name` - The name of the application. In Heroku, this is also the
    57     unique ID.
    58  * `stack` - The application stack is what platform to run the application
    59     in.
    60  * `region` - The region that the app should be deployed in.
    61  * `git_url` - The Git URL for the application. This is used for
    62     deploying new versions of the app.
    63  * `web_url` - The web (HTTP) URL that the application can be accessed
    64     at by default.
    65  * `heroku_hostname` - A hostname for the Heroku application, suitable
    66     for pointing DNS records.
    67  * `all_config_vars` - A map of all of the configuration variables that
    68      exist for the app, containing both those set by Terraform and those
    69      set externally.