-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
140 lines (117 loc) · 3.91 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. sequence of application name and environment `name`,`environment`,'attribute' [`webserver`,`qa`,`devops`,`public`,] ."
}
variable "attributes" {
type = list(string)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources."
}
# Bucket Variables
variable "location" {
type = string
description = "(Required) The GCS location."
}
variable "force_destroy" {
type = bool
default = true
description = "When deleting a bucket, this boolean option will delete all contained objects. If you try to delete a bucket that contains objects, Terraform will fail that run."
}
variable "uniform_bucket_level_access" {
type = bool
default = true
description = "Enables Uniform bucket-level access access to a bucket."
}
variable "storage_class" {
type = string
default = "STANDARD"
description = " (Required if action type is SetStorageClass) The target Storage Class of objects affected by this Lifecycle Rule. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE."
}
variable "default_event_based_hold" {
type = bool
default = null
description = "(Optional) Whether or not to automatically apply an eventBasedHold to new objects added to the bucket."
}
variable "public_access_prevention" {
type = string
default = ""
description = "Prevents public access to a bucket. Acceptable values are `inherited` or `enforced`. If `inherited`, the bucket uses public access prevention. only if the bucket is subject to the public access prevention organization policy constraint. Defaults to `inherited`."
}
variable "requester_pays" {
type = string
default = true
description = "Enables Requester Pays on a storage bucket"
}
variable "default_kms_key_name" {
type = string
default = null
description = "The bucket's encryption configuration"
}
variable "website" {
type = map(any)
default = null
description = "Map of website values. Supported attributes: main_page_suffix, not_found_page"
}
variable "cors" {
type = any
default = []
description = "The bucket's Cross-Origin Resource Sharing (CORS) configuration. Multiple blocks of this type are permitted."
}
variable "logging" {
type = any
default = null
description = "The bucket's Access & Storage Logs configuration."
}
variable "retention_policy" {
type = any
default = null
description = "Configuration of the bucket's data retention policy for how long objects in the bucket should be retained."
}
variable "versioning" {
type = bool
default = true
description = "The bucket's Versioning configuration."
}
variable "lifecycle_rules" {
type = any
default = []
description = "The bucket's Lifecycle Rules configuration."
}
variable "project_id" {
type = string
default = ""
description = "GCS Project ID."
}
variable "google_storage_bucket_iam_member_enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources."
}
variable "member" {
type = string
default = ""
description = "Identities that will be granted the privilege in role"
}
variable "bucket_id" {
type = string
default = ""
description = "Used to find the parent resource to bind the IAM policy to"
}