» heroku_app_webhook

Provides a Heroku App Webhook.

» Example Usage

# Create a new Heroku app
resource "heroku_app" "foobar" {
  name = "foobar"
}

# Add a web-hook for the app
resource "heroku_app_webhook" "foobar_release" {
  app_id  = "${heroku_app.foobar.id}"
  level   = "notify"
  url     = "https://example.com/heroku_webhook"
  include = ["api:release"]
}

» Argument Reference

The following arguments are supported:

  • app_id - (Required) The Heroku app to add to.
  • level - (Required) The webhook level (either notify or sync)
  • url - (Required) Optional plan configuration.
  • include - (Required) List of events to deliver to the webhook.
  • secret - (Optional) Value used to sign webhook payloads. Once set, this value cannot be fetched from the Heroku API, but it can be updated.
  • authorization - (Optional) Values used in Authorization header. Once set, this value cannot be fetched from the Heroku API, but it can be updated.

» Importing

Existing webhooks can be imported using the combination of the application name or id, a colon, and the webhook name or id, e.g.

$ terraform import heroku_app_webhook.foobar_release foobar:b85d9224-310b-409b-891e-c903f5a40568