github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/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  # Add a web-hook addon for the app
    23  resource "heroku_addon" "webhook" {
    24      app = "${heroku_app.default.name}"
    25      plan = "deployhooks:http"
    26      config {
    27          url = "http://google.com"
    28      }
    29  }
    30  ```
    31  
    32  ## Argument Reference
    33  
    34  The following arguments are supported:
    35  
    36  * `app` - (Required) The Heroku app to add to.
    37  * `plan` - (Required) The addon to add.
    38  * `config` - (Optional) Optional plan configuration.
    39  
    40  ## Attributes Reference
    41  
    42  The following attributes are exported:
    43  
    44  * `id` - The ID of the add-on
    45  * `name` - The add-on name
    46  * `plan` - The plan name
    47  * `provider_id` - The ID of the plan provider
    48