github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/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 ```hcl 17 # Create a new Heroku app 18 resource "heroku_app" "default" { 19 name = "my-cool-app" 20 region = "us" 21 22 config_vars { 23 FOOBAR = "baz" 24 } 25 26 buildpacks = [ 27 "heroku/go" 28 ] 29 } 30 ``` 31 32 ## Argument Reference 33 34 The following arguments are supported: 35 36 * `name` - (Required) The name of the application. In Heroku, this is also the 37 unique ID, so it must be unique and have a minimum of 3 characters. 38 * `region` - (Required) The region that the app should be deployed in. 39 * `stack` - (Optional) The application stack is what platform to run the application 40 in. 41 * `buildpacks` - (Optional) Buildpack names or URLs for the application. 42 Buildpacks configured externally won't be altered if this is not present. 43 * `config_vars` - (Optional) Configuration variables for the application. 44 The config variables in this map are not the final set of configuration 45 variables, but rather variables you want present. That is, other 46 configuration variables set externally won't be removed by Terraform 47 if they aren't present in this list. 48 * `space` - (Optional) The name of a private space to create the app in. 49 * `organization` - (Optional) A block that can be specified once to define 50 organization settings for this app. The fields for this block are 51 documented below. 52 53 The `organization` block supports: 54 55 * `name` (string) - The name of the organization. 56 * `locked` (boolean) 57 * `personal` (boolean) 58 59 ## Attributes Reference 60 61 The following attributes are exported: 62 63 * `id` - The ID of the app. This is also the name of the application. 64 * `name` - The name of the application. In Heroku, this is also the 65 unique ID. 66 * `stack` - The application stack is what platform to run the application 67 in. 68 * `space` - The private space the app should run in. 69 * `region` - The region that the app should be deployed in. 70 * `git_url` - The Git URL for the application. This is used for 71 deploying new versions of the app. 72 * `web_url` - The web (HTTP) URL that the application can be accessed 73 at by default. 74 * `heroku_hostname` - A hostname for the Heroku application, suitable 75 for pointing DNS records. 76 * `all_config_vars` - A map of all of the configuration variables that 77 exist for the app, containing both those set by Terraform and those 78 set externally.