-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
237 lines (196 loc) · 7.46 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# ---------------------------------------------------------------------------------------------------------------------
# Identity
# ---------------------------------------------------------------------------------------------------------------------
variable "create_identity" {
type = bool
description = "Controls if SES Email Identity should be created"
default = true
}
variable "email_identity" {
type = string
description = "The email address or domain to verify"
default = null
}
variable "configuration_set_name" {
type = string
description = "The configuration set to use by default when sending from the identity"
default = null
}
variable "dkim_signing_attributes" {
type = any
description = "The configuration of the DKIM authentication settings for an email domain identity"
default = {}
}
variable "email_identity_tags" {
description = "A map of tags to assign to the resource"
type = map(string)
default = null
}
# ---------------------------------------------------------------------------------------------------------------------
# Identity Feedback Attributes
# ---------------------------------------------------------------------------------------------------------------------
variable "create_email_identity_feedback_attributes" {
type = bool
description = "Controls if SES Email Identity Feedback Attributes should be created"
default = false
}
variable "email_forwarding_enabled" {
type = bool
description = "Sets the feedback forwarding configuration for the identity"
default = false
}
# ---------------------------------------------------------------------------------------------------------------------
# Verify domain indentity in Route53 (Easy DKIM)
# ---------------------------------------------------------------------------------------------------------------------
variable "verify_easy_dkim_in_route53" {
type = bool
description = "Controls if domain identity should be verified (only for Easy DKIM)"
default = false
}
variable "zone_id" {
type = string
default = null
description = "Route53 host zone ID to enable SES."
}
# ---------------------------------------------------------------------------------------------------------------------
# Configuration Set
# ---------------------------------------------------------------------------------------------------------------------
variable "create_configuration_set" {
type = bool
description = "Controls if default SES Configuration Set should be created"
default = false
}
variable "delivery_options" {
type = any
description = "An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set"
default = {}
}
variable "tracking_options" {
type = any
description = "An object that defines the open and click tracking options for emails that you send using the configuration set."
default = {}
}
variable "reputation_options" {
type = any
description = "An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set."
default = {}
}
variable "sending_options" {
type = any
description = "An object that defines whether or not Amazon SES can send email that you send using the configuration set."
default = {}
}
variable "suppression_options" {
type = any
description = "An object that contains information about the suppression list preferences for your account."
default = {}
}
variable "vdm_options" {
type = any
description = "An object that defines the VDM settings that apply to emails that you send using the configuration set."
default = {}
}
variable "configuration_set_tags" {
description = "A map of tags to assign to the resource"
type = map(string)
default = null
}
# ---------------------------------------------------------------------------------------------------------------------
# Configuration Set IAM Role
# ---------------------------------------------------------------------------------------------------------------------
variable "create_role" {
type = bool
description = "Whether to create IAM Role for the Configuration set."
default = false
}
variable "role_name" {
type = string
description = "Name of the IAM Role for the Configuration set."
default = null
}
variable "role_description" {
type = string
description = "Description of the IAM Role for the Configuration set."
default = null
}
variable "force_detach_policies" {
type = bool
description = "Whether to force detaching any policies the role has before destroying it."
default = false
}
variable "max_session_duration" {
type = number
description = "Maximum session duration (in seconds) that you want to set for the specified role."
default = 3600
}
variable "assume_role_policy" {
type = any
description = "Policy that grants an entity permission to assume the role."
default = null
}
variable "role_path" {
type = string
description = "Path to the role."
default = "/"
}
variable "role_permissions_boundary" {
type = string
description = "ARN of the policy that is used to set the permissions boundary for the role."
default = null
}
variable "iam_role_tags" {
description = "A map of tags to assign to the resource"
type = map(string)
default = null
}
# ---------------------------------------------------------------------------------------------------------------------
# IAM policy to allow message publishing into Kinesis Data Firehose
# ---------------------------------------------------------------------------------------------------------------------
variable "create_kinesis_data_firehose_policy" {
type = bool
description = "Whether to create IAM policy to allow message publishing into Kinesis Data Firehose"
default = false
}
variable "kinesis_data_firehose_delivery_stream_arn" {
type = string
description = "Kinesis Data Firehose delivery stream ARN"
default = null
}
variable "kinesis_data_firehose_policy_name" {
type = string
description = "Kinesis Data Firehose policy name"
default = null
}
variable "kinesis_data_firehose_policy_description" {
type = string
description = "Kinesis Data Firehose policy description"
default = null
}
variable "kinesis_data_firehose_policy_path" {
type = string
description = "Kinesis Data Firehose policy path"
default = "/"
}
variable "kinesis_data_firehose_policy_tags" {
description = "A map of tags to assign to the resource"
type = map(string)
default = null
}
# ---------------------------------------------------------------------------------------------------------------------
# Configuration Set Event Destination
# ---------------------------------------------------------------------------------------------------------------------
variable "create_event_destination" {
type = bool
description = "Whether to create Event Destiantion"
default = false
}
variable "event_destination_name" {
type = string
description = "A name that identifies the event destination within the configuration set"
default = null
}
variable "event_destination" {
type = any
description = "An object that defines the event destination"
default = {}
}