Creates a Worker Custom Domain.
resource "cloudflare_worker_domain" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
hostname = "subdomain.example.com"
service = "my-service"
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
}
account_id
(String) The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.hostname
(String) Hostname of the Worker Domain.service
(String) Name of worker script to attach the domain to.zone_id
(String) The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.environment
(String) The name of the Worker environment. Defaults to production
.id
(String) The ID of this resource.Import is supported using the following syntax:
$ terraform import cloudflare_worker_domain.example <account_id>/<worker_domain_id>