jianyuan/terraform-provider-porkbun
tldr.page
Dnssec Record

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

page_title: "porkbun_dnssec_record Resource - terraform-provider-porkbun" subcategory: "" description: |- Manage a DNSSEC DS or key record at the registry. DNSSEC requirements vary by registry — key_tag, alg, digest_type, and digest are the minimum required fields. Key data fields are optional and will be omitted if not accepted by the registry.

porkbun_dnssec_record (Resource)

Manage a DNSSEC DS or key record at the registry. DNSSEC requirements vary by registry — key_tag, alg, digest_type, and digest are the minimum required fields. Key data fields are optional and will be omitted if not accepted by the registry.

Example Usage

resource "porkbun_dnssec_record" "example" {
  domain = "jiancodes.com"

  alg         = "13"
  digest      = "18C7F73D40B152446315468F12E61A6F5D4DF3DC7EB899BAF7F56F6BBDB33C72"
  digest_type = "2"
  key_tag     = "35175"
}

import {
  to = porkbun_dnssec_record.example
  id = "jiancodes.com_35175"
}

Schema

Required

  • alg (String) (Force new) DS Data algorithm number (e.g. 13 for ECDSA P-256 SHA-256).
  • digest (String) (Force new) Hex-encoded digest value.
  • digest_type (String) (Force new) Digest type number (e.g. 2 for SHA-256).
  • domain (String) (Force new) The domain for the record being created.
  • key_tag (String) (Force new) DNSSEC key tag.

Optional

  • key_data_algo (String) (Force new) Key data algorithm.
  • key_data_flags (String) (Force new) Key data flags (optional, used when submitting full key data).
  • key_data_protocol (String) (Force new) Key data protocol.
  • key_data_public_key (String) (Force new) Key data public key in base64.
  • max_sig_life (String) (Force new) Maximum signature lifetime in seconds (registry-specific).

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import porkbun_dnssec_record.example <domain>_<key_tag>

terraform import porkbun_dnssec_record.example jiancodes.com_35175