Skip to content

Repository files navigation

terraform-cloudflare-dns-https

Create ServiceMode DNS HTTPS records in Cloudflare.

The Zone ID can be found on the Cloudflare overview page for the domain you want to add records to.

Usage

To create an HTTPS record saying example.com is available via http/2 over TLS:

module"example_com_https" {
source="brainsik/dns-https/cloudflare"zone_id="313372600deadcodebea5751993defc0"name="example.com"alpn="h2"
}

To create an HTTPS record saying example.com is available via http/3 or http/2 over TLS with IPs to use for initially establishing a connection:

module"example_com_https" {
source="brainsik/dns-https/cloudflare"zone_id="313372600deadcodebea5751993defc0"name="example.com"alpn="h3,h2"ipv4hint="192.0.2.1"ipv6hint="2001:db8::1,2001:db8::2"
}

Requirements

NameVersion
terraform>= 1.6
cloudflare~> 4

Providers

NameVersion
cloudflare~> 4

Modules

No modules.

Resources

NameType
cloudflare_record.httpsresource

Inputs

NameDescriptionTypeDefaultRequired
alpnA comma separated list of short form ALPN identifiers (e.g., "h2" or "h3,h2")stringn/ayes
ipv4hintA comma separated list of IPsstring""no
ipv6hintA comma separated list of IPsstring""no
nameThe name of the recordstringn/ayes
priorityResource record prioritynumber1no
zone_idThe Cloudflare DNS zone ID to add the record tostringn/ayes

Outputs

No outputs.

Releases

Used by

Contributors

Languages