-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
215 lines (170 loc) · 6.19 KB
/
variables.tf
File metadata and controls
215 lines (170 loc) · 6.19 KB
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
#########################
## Required parameters ##
#########################
variable "template_url" {
description = <<-DESCR
The URL of the Elastio Asset Account CloudFormation template obtained from
the Elastio Portal.
This parameter is sensitive, because anyone who knows this URL can deploy
Elastio Account stack and linking it to your Elastio tenant.
DESCR
sensitive = true
type = string
nullable = false
}
# Temporarily disabled to prevent the users from the footgun of this bug
# in Terraform AWS provider: https://github.com/hashicorp/terraform-provider-aws/issues/42172
#
# variable "accounts" {
# description = <<-DESCR
# The IDs AWS accounts where you want to create stack instances.
# Specify `accounts` only if you are using `SELF_MANAGED` permissions model.
# If you are using the `SERVICE_MANAGED` permissions model specify `deployment_targets` instead.
# DESCR
# type = list(string)
# default = null
# }
variable "deployment_targets" {
description = <<-DESCR
The AWS Organizations accounts for which to create stack instances.
Specify `deployment_targets` only if you are using `SERVICE_MANAGED` permissions model.
If you are using the `SELF_MANAGED` permissions model specify `accounts` instead.
[Details](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_instances#deployment_targets)
DESCR
type = object({
account_filter_type = optional(string)
accounts = optional(list(string))
accounts_url = optional(string)
organizational_unit_ids = optional(list(string))
})
default = null
}
#########################
## Optional parameters ##
#########################
variable "stack_instances_region" {
description = <<-DESCR
The AWS region where the Elastio Asset Account stack instances will be deployed.
It is just a single region because this stack is deployed only once per AWS account.
DESCR
type = string
default = "us-east-1"
}
variable "tags" {
description = <<-DESCR
Additional tags to apply to all resources created by this stack.
DESCR
type = map(string)
default = {}
}
variable "auto_deployment" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_set#auto_deployment-1)"
type = object({
enabled = optional(bool)
retain_stacks_on_account_removal = optional(bool)
})
default = null
}
variable "stack_set_name" {
description = "The name of the CloudFormation StackSet."
type = string
nullable = false
default = "ElastioAssetAccount"
}
variable "stack_set_description" {
description = "The description of the CloudFormation StackSet."
type = string
nullable = false
default = <<-DESCR
Elastio Asset Account StackSet creates IAM roles to link the AWS accounts with
the Elastio Connector. This allows the Elastio Connector to scan the assets
available in the account where the Elastio Asset Account stack instances are
deployed.
DESCR
}
##################################
## Deployment execution options ##
##################################
variable "operation_preferences" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_instances#operation_preferences)"
type = object({
concurrency_mode = optional(string)
failure_tolerance_count = optional(number)
failure_tolerance_percentage = optional(number)
max_concurrent_count = optional(number)
max_concurrent_percentage = optional(number)
# Region settings are not supported, because
# there must be at most one stack per account
# in a single region.
})
default = null
}
variable "managed_execution" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_set#managed_execution-1)"
type = object({
active = optional(bool)
})
default = null
}
variable "administration_role_arn" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_set#administration_role_arn-1)"
type = string
default = null
}
variable "execution_role_name" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_set#execution_role_name-1)"
type = string
default = null
}
variable "permission_model" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_set#permission_model-1)"
type = string
default = null
}
variable "call_as" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_set#call_as-1)"
type = string
default = null
}
variable "retain_stacks" {
description = "[See docs here](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudformation_stack_instances#retain_stacks-1)"
type = bool
default = null
}
######################################################
## Optional parameters of the CloudFormation stacks ##
######################################################
variable "iam_resource_names_prefix" {
description = <<-DESCR
Add a custom prefix to names of all IAM resources deployed by this stack.
DESCR
type = string
nullable = false
default = ""
}
variable "iam_resource_names_suffix" {
description = <<-DESCR
Add a custom prefix to names of all IAM resources deployed by this stack.
DESCR
type = string
nullable = false
default = ""
}
variable "encrypt_with_cmk" {
description = <<-DESCR
Provision an additional customer-managed KMS key to encrypt Lambda environment variables.
This increases the cost of the stack.
DESCR
type = bool
nullable = false
default = false
}
variable "lambda_tracing" {
description = <<-DESCR
Enable AWS X-Ray tracing for Lambda functions.
This increases the cost of the stack.
DESCR
type = bool
nullable = false
default = false
}