-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
128 lines (108 loc) · 3.47 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# ------------------------------------------------------------------------------
# Hosted Zone
# ------------------------------------------------------------------------------
variable "zone_id" {
type = string
description = "AWS Hosted Zone ID to store GSuite DNS records"
}
# ------------------------------------------------------------------------------
# MX, SLF, DKIM
# ------------------------------------------------------------------------------
variable "mx_records" {
type = list(string)
description = "List of MX Records"
default = [
"1 ASPMX.L.GOOGLE.COM",
"5 ALT1.ASPMX.L.GOOGLE.COM",
"5 ALT2.ASPMX.L.GOOGLE.COM",
"10 ALT3.ASPMX.L.GOOGLE.COM",
"10 ALT4.ASPMX.L.GOOGLE.COM",
]
}
variable "mx_verification_record" {
type = string
description = "MX Verification Record (like <something>.mx-verification.google.com)"
default = null
}
variable "spf_value" {
type = string
description = "SPF Record for Gmail"
default = "v=spf1 include:_spf.google.com ~all"
}
# If you use key longer than 255 chars, you need to break it into two pieces using \"\":
# - https://aws.amazon.com/premiumsupport/knowledge-center/route53-resolve-dkim-text-record-error/
# - https://github.com/hashicorp/terraform-provider-aws/issues/2761
variable "dkim_value" {
type = string
description = "DKIM Identifier Value"
default = false
}
variable "dkim_selector" {
type = string
description = "DKIM Identifier Record Key selector (without `._domainkey`)"
default = "google"
}
variable "dmarc_value" {
type = string
default = null
}
# ------------------------------------------------------------------------------
# DNSSEC-signed MX Records
# More: https://bornoe.org/blog/2019/07/g-suite-dnssec-signed-mx-records/
# ------------------------------------------------------------------------------
variable "dnssec_mx_records" {
type = list(string)
description = "List of MX Records"
default = [
"1 mx1.smtp.goog",
"5 mx2.smtp.goog",
"5 mx3.smtp.goog",
"10 mx4.smtp.goog"
]
}
variable "use_dnssec_signed_records" {
type = bool
description = "Toggle to enable DNSSEC-signed Records for Gmail"
default = false
}
# ------------------------------------------------------------------------------
# GSuite custom URLs
# ------------------------------------------------------------------------------
variable "gsuite_custom_url_cname" {
type = string
description = "CNAME Record for custom Application URLs"
default = "ghs.googlehosted.com"
}
variable "custom_subdomain_calendar" {
type = string
description = "Subdomain for custom Calendar URL"
default = null
}
variable "custom_subdomain_drive" {
type = string
description = "Subdomain for custom Drive URL"
default = null
}
variable "custom_subdomain_groups" {
type = string
description = "Subdomain for custom Groups for Business URL"
default = null
}
variable "custom_subdomain_mail" {
type = string
description = "Subdomain for custom Gmail URL"
default = null
}
variable "custom_subdomain_sites" {
type = string
description = "Subdomain for custom Sites URL"
default = null
}
# ------------------------------------------------------------------------------
# Misc
# ------------------------------------------------------------------------------
variable "ttl" {
type = string
description = "TTL"
default = "3600"
}