jianyuan/terraform-provider-porkbun
tldr.page
Webhook

generated by https://github.com/hashicorp/terraform-plugin-docs

page_title: "porkbun_webhook Resource - terraform-provider-porkbun" subcategory: "" description: |- Manages a webhook endpoint that receives signed POST requests for account events. Porkbun disables an endpoint after 20 consecutive failed deliveries; the next apply re-enables it while enabled is true.

porkbun_webhook (Resource)

Manages a webhook endpoint that receives signed POST requests for account events. Porkbun disables an endpoint after 20 consecutive failed deliveries; the next apply re-enables it while enabled is true.

Example Usage

resource "porkbun_webhook" "example" {
  url    = "https://example.com/porkbun/webhook"
  events = ["domain.registered", "dns.*"]
}

Schema

Required

  • url (String) The HTTPS URL that receives the signed POST. Port 443 only, and the hostname must resolve to a public internet address.

Optional

  • enabled (Boolean) Whether deliveries are sent. Defaults to true.
  • events (Set of String) Event types to subscribe to, such as domain.registered. Prefix wildcards like dns.* are allowed. * means all events. Defaults to ["*"].

Read-Only

  • id (String) The webhook endpoint ID.
  • secret (String, Sensitive) The signing secret (HMAC-SHA256 key) used to verify the X-Porkbun-Signature header.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import porkbun_webhook.example <webhook_id>

terraform import porkbun_webhook.example 42