-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
69 lines (59 loc) · 1.94 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
variable "region" {
type = string
description = "The region of the deployment (including any allowed account ids)."
}
variable "domain" {
type = string
description = "The domain to create the SES identity for."
}
variable "zone_id" {
type = string
description = "Route53 parent zone ID."
default = ""
}
variable "verify_domain" {
type = bool
description = "If true the module will create Route53 DNS records used for domain verification."
default = false
nullable = false
}
variable "verify_dkim" {
type = bool
description = "If true the module will create Route53 DNS records used for DKIM verification."
default = false
nullable = false
}
variable "create_spf_record" {
type = bool
description = "If true the module will create an SPF record for `domain`."
default = false
nullable = false
}
variable "use_custom_mail_from_domain" {
type = bool
description = "If true the module will create a custom subdomain for the `MAIL FROM` address."
default = false
nullable = false
}
variable "mail_from_domain" {
type = string
description = "If provided the module will create a custom subdomain for the `MAIL FROM` address."
default = null
nullable = true
validation {
condition = var.mail_from_domain != null ? can(regex("^[a-zA-Z0-9-]+$", var.mail_from_domain)) : true
error_message = "If provided must be a valid subdomain."
}
}
variable "allow_cross_account_iam_send_email" {
type = bool
description = "If true allows iam roles to send emails from the account ids provided in `allowed_cross_account_iam_send_email_account_ids`."
default = false
nullable = false
}
variable "allowed_cross_account_iam_send_email_account_ids" {
type = list(string)
description = "Account ids for cross account iam roles to allowing sending emails from."
default = []
nullable = false
}