github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/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      config {
    33          url = "http://google.com"
    34      }
    35  }
    36  ```
    37  
    38  ## Argument Reference
    39  
    40  The following arguments are supported:
    41  
    42  * `app` - (Required) The Heroku app to add to.
    43  * `plan` - (Required) The addon to add.
    44  * `config` - (Optional) Optional plan configuration.
    45  
    46  ## Attributes Reference
    47  
    48  The following attributes are exported:
    49  
    50  * `id` - The ID of the add-on
    51  * `name` - The add-on name
    52  * `plan` - The plan name
    53  * `provider_id` - The ID of the plan provider
    54