911 B
911 B
layout | page_title | sidebar_current |
---|---|---|
heroku | Heroku: heroku_addon | docs-heroku-resource-addon |
heroku_addon
Provides a Heroku Add-On resource. These can be attach services to a Heroku app.
Example Usage
# Create a new heroku app
resource "heroku_app" "default" {
name = "test-app"
}
# Add a web-hook addon for the app
resource "heroku_addon" "webhook" {
app = "${heroku_app.default.name}"
plan = "deployhooks:http"
config {
url = "http://google.com"
}
}
Argument Reference
The following arguments are supported:
app
- (Required) The Heroku app to add to.plan
- (Required) The addon to add.config
- (Optional) Optional plan configuration.
Attributes Reference
The following attributes are exported:
id
- The ID of the add-onname
- The add-on nameplan
- The plan nameprovider_id
- The ID of the plan provider