-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
44 lines (36 loc) · 1.59 KB
/
outputs.tf
File metadata and controls
44 lines (36 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
output "id" {
description = "The unique identifier of the Cloudflare zone."
value = try(local.zone_id, null)
}
output "record_key_to_id" {
description = "Map of record keys (name-type-content) to record IDs."
value = { for k, record in cloudflare_dns_record.default : k => record.id }
}
output "type" {
description = "The zone type, indicating the plan or configuration applied (e.g., 'full' or 'partial')."
value = join("", cloudflare_zone.default[*].type)
}
output "vanity_name_servers" {
description = "List of custom vanity name servers assigned to the zone, if configured."
value = try(cloudflare_zone.default[*].vanity_name_servers, null)
}
output "meta_phishing_detected" {
description = "Indicates whether phishing content has been detected on the zone."
value = join("", cloudflare_zone.default[*].meta.phishing_detected)
}
output "status" {
description = "Current status of the zone (e.g., 'active', 'pending')."
value = join("", cloudflare_zone.default[*].status)
}
output "name_servers" {
description = "List of Cloudflare-assigned name servers. Only populated for zones using full DNS setup."
value = try(cloudflare_zone.default[*].name_servers, null)
}
output "verification_key" {
description = "TXT record value used to verify domain ownership. Applicable only for zones of type 'partial'."
value = join("", compact(cloudflare_zone.default[*].verification_key))
}
output "ruleset_ids" {
description = "Map of ruleset phases to their corresponding IDs."
value = { for k, rs in cloudflare_ruleset.default : k => rs.id }
}