forked from cloudposse/terraform-aws-tfstate-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
182 lines (153 loc) · 4.84 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
variable "namespace" {
type = string
default = ""
description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'"
}
variable "environment" {
type = string
default = ""
description = "Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT'"
}
variable "stage" {
type = string
default = ""
description = "Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release'"
}
variable "name" {
type = string
default = "terraform"
description = "Solution name, e.g. 'app' or 'jenkins'"
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`"
}
variable "attributes" {
type = list(string)
default = ["state"]
description = "Additional attributes (e.g. `state`)"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
}
variable "additional_tag_map" {
type = map(string)
default = {}
description = "Additional tags for appending to each tag map"
}
variable "context" {
type = object({
namespace = string
environment = string
stage = string
name = string
enabled = bool
delimiter = string
attributes = list(string)
label_order = list(string)
tags = map(string)
additional_tag_map = map(string)
regex_replace_chars = string
})
default = {
namespace = ""
environment = ""
stage = ""
name = ""
enabled = true
delimiter = ""
attributes = []
label_order = []
tags = {}
additional_tag_map = {}
regex_replace_chars = ""
}
description = "Default context to use for passing state between label invocations"
}
variable "label_order" {
type = list(string)
default = []
description = "The naming order of the id output and Name tag"
}
variable "region" {
type = string
description = "AWS Region the S3 bucket should reside in"
}
variable "acl" {
type = string
description = "The canned ACL to apply to the S3 bucket"
default = "private"
}
variable "read_capacity" {
default = 5
description = "DynamoDB read capacity units"
}
variable "write_capacity" {
default = 5
description = "DynamoDB write capacity units"
}
variable "force_destroy" {
description = "A boolean that indicates the S3 bucket can be destroyed even if it contains objects. These objects are not recoverable"
default = "false"
}
variable "mfa_delete" {
description = "A boolean that indicates that versions of S3 objects can only be deleted with MFA. ( Terraform cannot apply changes of this value; https://github.com/terraform-providers/terraform-provider-aws/issues/629 )"
default = "false"
}
variable "enable_server_side_encryption" {
description = "Enable DynamoDB server-side encryption"
default = "true"
}
variable "block_public_acls" {
description = "Whether Amazon S3 should block public ACLs for this bucket."
default = false
}
variable "ignore_public_acls" {
description = "Whether Amazon S3 should ignore public ACLs for this bucket."
default = false
}
variable "block_public_policy" {
description = "Whether Amazon S3 should block public bucket policies for this bucket."
default = false
}
variable "restrict_public_buckets" {
description = "Whether Amazon S3 should restrict public bucket policies for this bucket."
default = false
}
variable "regex_replace_chars" {
type = string
default = "/[^a-zA-Z0-9-]/"
description = "Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed"
}
variable "prevent_unencrypted_uploads" {
type = string
default = "true"
description = "Prevent uploads of unencrypted objects to S3"
}
variable "profile" {
default = ""
description = "AWS profile name as set in the shared credentials file"
}
variable "role_arn" {
default = ""
description = "The role to be assumed"
}
variable "terraform_backend_config_file_name" {
default = "terraform.tf"
description = "Name of terraform backend config file"
}
variable "terraform_backend_config_file_path" {
default = ""
description = "The path to terrafrom project directory"
}
variable "terraform_version" {
default = "0.11.3"
description = "The minimum required terraform version"
}
variable "terraform_state_file" {
default = "terraform.tfstate"
description = "The path to the state file inside the bucket"
}