Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 1.54 KB

File metadata and controls

72 lines (55 loc) · 1.54 KB
page_title dbtcloud_webhook Resource - dbtcloud
subcategory
description Webhook details

dbtcloud_webhook (Resource)

Webhook details

Example Usage

resource "dbtcloud_webhook" "test_webhook" {
  name        = "test-webhook"
  description = "Test webhook"
  client_url  = "http://localhost/nothing"
  event_types = [
    "job.run.started",
    "job.run.completed"
  ]
  job_ids = [
    1234,
    5678
  ]
}

Schema

Required

  • client_url (String) Webhooks Client URL
  • event_types (List of String) Webhooks Event Types
  • name (String) Webhooks Name

Optional

  • active (Boolean) Webhooks active flag
  • description (String) Webhooks Description
  • job_ids (List of Number) List of job IDs to trigger the webhook. When null or empty, the webhook will trigger on all jobs

Read-Only

  • account_identifier (String) Webhooks Account Identifier
  • hmac_secret (String, Sensitive) Secret key for the webhook. Can be used to validate the authenticity of the webhook.
  • http_status_code (String) Latest HTTP status of the webhook
  • id (String) Webhook's ID

Import

Import is supported using the following syntax:

# using  import blocks (requires Terraform >= 1.5)
import {
  to = dbtcloud_webhook.my_webhook
  id = "webhook_id"
}

import {
  to = dbtcloud_webhook.my_webhook
  id = "wsu_abcdefg"
}

# using the older import command
terraform import dbtcloud_webhook.my_webhook "webhook_id"
terraform import dbtcloud_webhook.my_webhook wsu_abcdefg