generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
223 lines (187 loc) · 6.96 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-s3-multiaccount-replication"
description = "Terraform current module repo"
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "attributes" {
type = list(any)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `organization`, `environment`, `name` and `attributes`."
}
variable "tags" {
type = map(any)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "create_bucket" {
type = bool
default = true
description = "Controls if S3 bucket should be created"
}
variable "attach_elb_log_delivery_policy" {
type = bool
default = false
description = "Controls if S3 bucket should have ELB log delivery policy attached"
}
variable "attach_lb_log_delivery_policy" {
type = bool
default = false
description = "Controls if S3 bucket should have ALB/NLB log delivery policy attached"
}
variable "attach_deny_insecure_transport_policy" {
type = bool
default = false
description = "Controls if S3 bucket should have deny non-SSL transport policy attached"
}
variable "attach_require_latest_tls_policy" {
type = bool
default = false
description = "Controls if S3 bucket should require the latest version of TLS"
}
variable "attach_policy" {
type = bool
default = false
description = "Controls if S3 bucket should have bucket policy attached (set to `true` to use value of `policy` as bucket policy)"
}
variable "attach_public_policy" {
type = bool
default = true
description = "Controls if a user defined public bucket policy will be attached (set to `false` to allow upstream to apply defaults to the bucket)"
}
variable "bucket" {
type = string
default = null
description = "(Optional, Forces new resource) The name of the bucket. If omitted, Terraform will assign a random, unique name."
}
variable "bucket_prefix" {
type = string
default = null
description = "(Optional, Forces new resource) Creates a unique bucket name beginning with the specified prefix. Conflicts with bucket."
}
variable "acl" {
type = string
default = "private"
description = "(Optional) The canned ACL to apply. Defaults to 'private'. Conflicts with `grant`"
}
variable "policy" {
type = string
default = null
description = "(Optional) A valid bucket policy JSON document. Note that if the policy document is not specific enough (but still valid), Terraform may view the policy as constantly changing in a terraform plan. In this case, please make sure you use the verbose/specific version of the policy. For more information about building AWS IAM policy documents with Terraform, see the AWS IAM Policy Document Guide."
}
variable "force_destroy" {
type = bool
default = false
description = "(Optional, Default:false ) A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable."
}
variable "acceleration_status" {
type = string
default = null
description = "(Optional) Sets the accelerate configuration of an existing bucket. Can be Enabled or Suspended."
}
variable "request_payer" {
type = string
default = null
description = "(Optional) Specifies who should bear the cost of Amazon S3 data transfer. Can be either BucketOwner or Requester. By default, the owner of the S3 bucket would incur the costs of any data transfer. See Requester Pays Buckets developer guide for more information."
}
variable "website" {
type = map(string)
default = {}
description = "Map containing static web-site hosting or redirect configuration."
}
variable "cors_rule" {
type = any
default = []
description = "List of maps containing rules for Cross-Origin Resource Sharing."
}
variable "versioning" {
type = map(string)
default = {}
description = "Map containing versioning configuration."
}
variable "logging" {
type = map(string)
default = {}
description = "Map containing access bucket logging configuration."
}
variable "grant" {
type = any
default = []
description = "An ACL policy grant. Conflicts with `acl`"
}
variable "lifecycle_rule" {
type = any
default = []
description = "List of maps containing configuration of object lifecycle management."
}
variable "replication_configuration" {
type = any
default = {}
description = "Map containing cross-region replication configuration."
}
variable "server_side_encryption_configuration" {
type = any
default = {}
description = "Map containing server-side encryption configuration."
}
variable "object_lock_configuration" {
type = any
default = {}
description = "Map containing S3 object locking configuration."
}
variable "block_public_acls" {
type = bool
default = false
description = "Whether Amazon S3 should block public ACLs for this bucket."
}
variable "block_public_policy" {
type = bool
default = false
description = "Whether Amazon S3 should block public bucket policies for this bucket."
}
variable "ignore_public_acls" {
type = bool
default = false
description = "Whether Amazon S3 should ignore public ACLs for this bucket."
}
variable "restrict_public_buckets" {
type = bool
default = false
description = "Whether Amazon S3 should restrict public bucket policies for this bucket."
}
variable "control_object_ownership" {
type = bool
default = false
description = "Whether to manage S3 Bucket Ownership Controls on this bucket."
}
variable "object_ownership" {
type = string
default = "ObjectWriter"
description = "Object ownership. Valid values: BucketOwnerEnforced, BucketOwnerPreferred or ObjectWriter. 'BucketOwnerEnforced': ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket. 'BucketOwnerPreferred': Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control canned ACL. 'ObjectWriter': The uploading account will own the object if the object is uploaded with the bucket-owner-full-control canned ACL."
}