github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/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 --- 6 7 # heroku\_addon 8 9 Provides a Heroku Add-On resource. These can be attach 10 services to a Heroku app. 11 12 ## Example Usage 13 14 ``` 15 # Create a new heroku app 16 resource "heroku_app" "default" { 17 name = "test-app" 18 } 19 20 # Add a web-hook addon for the app 21 resource "heroku_addon" "webhook" { 22 app = "${heroku_app.default.name}" 23 plan = "deployhooks:http" 24 config { 25 url = "http://google.com" 26 } 27 } 28 ``` 29 30 ## Argument Reference 31 32 The following arguments are supported: 33 34 * `app` - (Required) The Heroku app to add to. 35 * `plan` - (Required) The addon to add. 36 * `config` - (Optional) Optional plan configuration. 37 38 ## Attributes Reference 39 40 The following attributes are exported: 41 42 * `id` - The ID of the add-on 43 * `name` - The add-on name 44 * `plan` - The plan name 45 * `provider_id` - The ID of the plan provider 46