Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (26 loc) · 947 Bytes

netlify_hook.html.markdown

File metadata and controls

34 lines (26 loc) · 947 Bytes
layout page_title sidebar_current description
netlify
Netlify: netlify_hook
docs-netlify-resource-hook
Provides an hook resource.

netlify_hook

An outgoing webhook, typically used to notify a third party service about deploys.

Example Usage

resource "netlify_hook" "email_on_deploy" {
  site_id = "12345"
  type    = "email"
  event   = "deploy_created"

  data {
    email = "test@test.com"
  }
}

Argument Reference

The following arguments are supported:

  • site_id - (Required) - id of the site on netlify
  • type - (Required) - type of outgoing webhook, for example slack, email, github commit status, etc
  • event - (Required) - when to send the data, for example on deploy create, succeed, fail, etc
  • data - (Required) object/hash of data to be sent along with the webhook. this varies depending on the type