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

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

page_title: "porkbun_glue_record Resource - terraform-provider-porkbun" subcategory: "" description: |- Manages a glue record (host object) for a nameserver hostname under a domain. Use this resource when hosting a nameserver at a subdomain of the domain itself (e.g. ns1.example.com).

porkbun_glue_record (Resource)

Manages a glue record (host object) for a nameserver hostname under a domain. Use this resource when hosting a nameserver at a subdomain of the domain itself (e.g. ns1.example.com).

Example Usage

resource "porkbun_glue_record" "example" {
  domain    = "jiancodes.com"
  subdomain = "ns1"

  ips = ["192.0.2.1", "2001:db8::68"]
}

Schema

Required

  • domain (String) The domain for the record being created.
  • ips (Set of String) The IP addresses (IPv4 and/or IPv6) to associate with the host record.
  • subdomain (String) The subdomain portion only (e.g. 'ns1' for ns1.example.com).

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import porkbun_glue_record.example <domain>_<subdomain>

terraform import porkbun_glue_record.example jiancodes.com_ns1