-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
74 lines (62 loc) · 1.87 KB
/
variables.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
variable "domain_name" {
description = "Hosted Zone domain name"
type = string
}
variable "comment" {
description = "Hosted Zone comment"
type = string
}
variable "caa_report_recipient" {
description = "Recipient of CAA reports"
type = string
default = "hostmaster"
}
variable "caa_issuers" {
description = "List of Certificate authories authorized to issue certificates"
type = list(string)
default = ["amazon.com"]
}
variable "tls_report_recipient" {
description = "Recipient of SMTP TLS Reports"
type = string
default = "smtp-tls-reports"
}
variable "mx_records" {
description = "List of MX Records"
type = list(string)
default = []
}
variable "mta_sts_mode" {
description = "MTA Strict Transport Security mode, defaults to testing"
type = string
default = "testing"
}
variable "dmarc_version" {
description = "SMTP DMARC Reporting version, defaults to DMARC1"
type = string
default = ""
}
variable "dmarc_mailbox" {
description = "SMTP DMARC Reporting mailbox, defaults to noreply-dmarc-support"
type = string
default = ""
}
variable "dmarc_domain" {
description = "SMTP DMARC Reporting domain, defaults to current domain"
type = string
default = ""
}
variable "dmarc_additional_rua" {
description = "SMTP DMARC Reporting additional RUA"
type = string
default = ""
}
variable "additional_dkim" {
description = "Additional DKIM TXT records to add"
type = map(string)
default = {}
}
locals {
caa_report_recipient = can(regex("@", var.caa_report_recipient)) ? var.caa_report_recipient : "${var.caa_report_recipient}@${aws_route53_zone.this.name}"
tls_report_recipient = can(regex("@", var.tls_report_recipient)) ? var.tls_report_recipient : "${var.tls_report_recipient}@${aws_route53_zone.this.name}"
}