layout | page_title | sidebar_current | description |
---|---|---|---|
netlify |
Netlify: netlify_hook |
docs-netlify-resource-hook |
Provides an hook resource. |
An outgoing webhook, typically used to notify a third party service about deploys.
resource "netlify_hook" "email_on_deploy" {
site_id = "12345"
type = "email"
event = "deploy_created"
data {
email = "test@test.com"
}
}
The following arguments are supported:
site_id
- (Required) - id of the site on netlifytype
- (Required) - type of outgoing webhook, for example slack, email, github commit status, etcevent
- (Required) - when to send the data, for example on deploy create, succeed, fail, etcdata
- (Required) object/hash of data to be sent along with the webhook. this varies depending on thetype