cloudflare_custom_hostname (Resource)

Provides a Cloudflare custom hostname (also known as SSL for SaaS) resource.

Example Usage

resource "cloudflare_custom_hostname" "example" {
  zone_id  = "0da42c8d2132a9ddaf714f9e7c920711"
  hostname = "hostname.example.com"
  ssl {
    method = "txt"
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for ssl

Optional:

Read-Only:

Nested Schema for ssl.settings

Optional:

Nested Schema for ssl.validation_errors

Read-Only:

Nested Schema for ssl.validation_records

Read-Only:

Import

Import is supported using the following syntax:

$ terraform import cloudflare_custom_hostname.example 1d5fdc9e88c8a8c4518b068cd94331fe/0d89c70d-ad9f-4843-b99f-6cc0252067e9