github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/heroku/r/addon.html.markdown (about) 1 --- 2 layout: "heroku" 3 page_title: "Heroku: heroku_addon" 4 sidebar_current: "docs-heroku-resource-addon" 5 description: |- 6 Provides a Heroku Add-On resource. These can be attach services to a Heroku app. 7 --- 8 9 # heroku\_addon 10 11 Provides a Heroku Add-On resource. These can be attach 12 services to a Heroku app. 13 14 ## Example Usage 15 16 ``` 17 # Create a new Heroku app 18 resource "heroku_app" "default" { 19 name = "test-app" 20 } 21 22 # Create a database, and configure the app to use it 23 resource "heroku_addon" "database" { 24 app = "${heroku_app.default.name}" 25 plan = "heroku-postgresql:hobby-basic" 26 } 27 28 # Add a web-hook addon for the app 29 resource "heroku_addon" "webhook" { 30 app = "${heroku_app.default.name}" 31 plan = "deployhooks:http" 32 33 config { 34 url = "http://google.com" 35 } 36 } 37 ``` 38 39 ## Argument Reference 40 41 The following arguments are supported: 42 43 * `app` - (Required) The Heroku app to add to. 44 * `plan` - (Required) The addon to add. 45 * `config` - (Optional) Optional plan configuration. 46 47 ## Attributes Reference 48 49 The following attributes are exported: 50 51 * `id` - The ID of the add-on 52 * `name` - The add-on name 53 * `plan` - The plan name 54 * `provider_id` - The ID of the plan provider 55