generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathvariables.tf
285 lines (235 loc) · 8.31 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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
variable "create" {
description = "Determines whether resources will be created (affects all resources)"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# Service
################################################################################
variable "create_service" {
description = "Determines whether the service will be created"
type = bool
default = true
}
variable "service_name" {
description = "The name of the service"
type = string
default = ""
}
variable "auto_scaling_configuration_arn" {
description = "ARN of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration"
type = string
default = null
}
variable "encryption_configuration" {
description = "The encryption configuration for the service"
type = any
default = {}
}
variable "health_check_configuration" {
description = "The health check configuration for the service"
type = any
default = {}
}
variable "instance_configuration" {
description = "The instance configuration for the service"
type = any
default = {}
}
variable "network_configuration" {
description = "The network configuration for the service"
type = any
default = {}
}
variable "observability_configuration" {
description = "The observability configuration for the service"
type = any
default = {}
}
variable "source_configuration" {
description = "The source configuration for the service"
type = any
default = {}
}
################################################################################
# IAM Role - Access
################################################################################
variable "create_access_iam_role" {
description = "Determines whether an IAM role is created or to use an existing IAM role"
type = bool
default = false
}
variable "access_iam_role_name" {
description = "Name to use on IAM role created"
type = string
default = null
}
variable "access_iam_role_use_name_prefix" {
description = "Determines whether the IAM role name (`iam_role_name`) is used as a prefix"
type = bool
default = true
}
variable "access_iam_role_path" {
description = "IAM role path"
type = string
default = null
}
variable "access_iam_role_description" {
description = "Description of the role"
type = string
default = null
}
variable "access_iam_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the IAM role"
type = string
default = null
}
variable "private_ecr_arn" {
description = "The ARN of the private ECR repository that contains the service image to launch"
type = string
default = null
}
variable "access_iam_role_policies" {
description = "IAM policies to attach to the IAM role"
type = map(string)
default = {}
}
################################################################################
# IAM Role - Instance
################################################################################
variable "create_instance_iam_role" {
description = "Determines whether an IAM role is created or to use an existing IAM role"
type = bool
default = true
}
variable "instance_iam_role_name" {
description = "Name to use on IAM role created"
type = string
default = null
}
variable "instance_iam_role_use_name_prefix" {
description = "Determines whether the IAM role name (`iam_role_name`) is used as a prefix"
type = bool
default = true
}
variable "instance_iam_role_path" {
description = "IAM role path"
type = string
default = null
}
variable "instance_iam_role_description" {
description = "Description of the role"
type = string
default = null
}
variable "instance_iam_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the IAM role"
type = string
default = null
}
variable "instance_iam_role_policies" {
description = "IAM policies to attach to the IAM role"
type = map(string)
default = {}
}
################################################################################
# IAM Role Policy - Instance
################################################################################
variable "instance_policy_statements" {
description = "A map of IAM policy [statements](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document#statement) for custom permission usage"
type = any
default = {}
}
################################################################################
# VPC Ingress Configuration
################################################################################
variable "create_ingress_vpc_connection" {
description = "Determines whether a VPC ingress configuration will be created"
type = bool
default = false
}
variable "ingress_vpc_id" {
description = "The ID of the VPC that is used for the VPC ingress configuration"
type = string
default = ""
}
variable "ingress_vpc_endpoint_id" {
description = "The ID of the VPC endpoint that is used for the VPC ingress configuration"
type = string
default = ""
}
################################################################################
# Custom Domain Association
################################################################################
variable "create_custom_domain_association" {
description = "Determines whether a Custom Domain Association will be created"
type = bool
default = false
}
variable "domain_name" {
description = "The custom domain endpoint to association. Specify a base domain e.g., `example.com` or a subdomain e.g., `subdomain.example.com`"
type = string
default = ""
}
variable "enable_www_subdomain" {
description = "Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to `true`"
type = bool
default = null
}
# variable "hosted_zone_id" {
# description = "The ID of the Route53 hosted zone that contains the domain for the `domain_name`"
# type = string
# default = ""
# }
################################################################################
# VPC Connector
################################################################################
variable "create_vpc_connector" {
description = "Determines whether a VPC Connector will be created"
type = bool
default = false
}
variable "vpc_connector_name" {
description = "The name of the VPC Connector"
type = string
default = ""
}
variable "vpc_connector_subnets" {
description = "The subnets to use for the VPC Connector"
type = list(string)
default = []
}
variable "vpc_connector_security_groups" {
description = "The security groups to use for the VPC Connector"
type = list(string)
default = []
}
################################################################################
# Connection(s)
################################################################################
variable "connections" {
description = "Map of connection definitions to create"
type = any
default = {}
}
################################################################################
# Autoscaling Configuration(s)
################################################################################
variable "auto_scaling_configurations" {
description = "Map of auto-scaling configuration definitions to create"
type = any
default = {}
}
################################################################################
# Observability Configuration
################################################################################
variable "enable_observability_configuration" {
description = "Determines whether an X-Ray Observability Configuration will be created and assigned to the service"
type = bool
default = true
}