generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
outputs.tf
57 lines (48 loc) · 1.8 KB
/
outputs.tf
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
45
46
47
48
49
50
51
52
53
54
55
56
57
output "id" {
description = "The zone ID."
value = try(local.zone_id, null)
}
output "record_hostnames_to_ids" {
description = "A map of the zone record hostnames to IDs."
value = {
for record in cloudflare_record.default :
record.hostname => record.id...
if local.records_enabled
}
}
output "plan" {
description = "The name of the commercial plan to apply to the zone."
value = join("", cloudflare_zone.default[*].plan)
}
output "vanity_name_servers" {
description = "A list of Vanity Nameservers."
value = try(cloudflare_zone.default[*].vanity_name_servers, null)
}
output "meta_wildcard_proxiable" {
description = "Indicates whether wildcard DNS records can receive Cloudflare security and performance features."
value = join("", cloudflare_zone.default[*].meta.wildcard_proxiable)
}
output "meta_phishing_detected" {
description = "Indicates if URLs on the zone have been identified as hosting phishing content."
value = join("", cloudflare_zone.default[*].meta.phishing_detected)
}
output "status" {
description = "Status of the zone."
value = join("", cloudflare_zone.default[*].status)
}
output "name_servers" {
description = "A list of Cloudflare-assigned name servers. This is only populated for zones that use Cloudflare DNS."
value = try(cloudflare_zone.default[*].name_servers, null)
}
output "verification_key" {
description = "Contains the TXT record value to validate domain ownership. This is only populated for zones of type `partial`."
value = join("", cloudflare_zone.default[*].verification_key)
}
output "page_rule_targets_to_ids" {
description = "A map of the page rule targets to IDs."
value = {
for pr in cloudflare_page_rule.default :
pr.target => pr.id
if length(local.page_rules) > 0
}
}