File tree 5 files changed +15
-0
lines changed
modules/core_project_factory
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ determining that location is as follows:
113
113
| activate\_ apis | The list of apis to activate within the project | ` list(string) ` | <pre >[ <br > "compute.googleapis.com"<br >] </pre > | no |
114
114
| auto\_ create\_ network | Create the default network | ` bool ` | ` false ` | no |
115
115
| billing\_ account | The ID of the billing account to associate this project with | ` string ` | n/a | yes |
116
+ | bucket\_ labels | A map of key/value label pairs to assign to the bucket (optional) | ` map ` | ` {} ` | no |
116
117
| bucket\_ location | The location for a GCS bucket to create (optional) | ` string ` | ` "US" ` | no |
117
118
| bucket\_ name | A name for a GCS bucket to create (in the bucket\_ project project), useful for Terraform state (optional) | ` string ` | ` "" ` | no |
118
119
| bucket\_ project | A project to create a GCS bucket (bucket\_ name) in, useful for Terraform state (optional) | ` string ` | ` "" ` | no |
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ module "project-factory" {
55
55
bucket_name = var. bucket_name
56
56
bucket_location = var. bucket_location
57
57
bucket_versioning = var. bucket_versioning
58
+ bucket_labels = var. bucket_labels
58
59
auto_create_network = var. auto_create_network
59
60
disable_services_on_destroy = var. disable_services_on_destroy
60
61
default_service_account = var. default_service_account
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ resource "google_storage_bucket" "project_bucket" {
281
281
name = local. project_bucket_name
282
282
project = var. bucket_project == local. base_project_id ? google_project. main . project_id : var. bucket_project
283
283
location = var. bucket_location
284
+ labels = var. bucket_labels
284
285
285
286
versioning {
286
287
enabled = var. bucket_versioning
Original file line number Diff line number Diff line change @@ -169,6 +169,12 @@ variable "bucket_versioning" {
169
169
default = false
170
170
}
171
171
172
+ variable "bucket_labels" {
173
+ description = " A map of key/value label pairs to assign to the bucket (optional)"
174
+ type = map
175
+ default = {}
176
+ }
177
+
172
178
variable "auto_create_network" {
173
179
description = " Create the default network"
174
180
type = bool
Original file line number Diff line number Diff line change @@ -169,6 +169,12 @@ variable "bucket_versioning" {
169
169
default = false
170
170
}
171
171
172
+ variable "bucket_labels" {
173
+ description = " A map of key/value label pairs to assign to the bucket (optional)"
174
+ type = map
175
+ default = {}
176
+ }
177
+
172
178
variable "auto_create_network" {
173
179
description = " Create the default network"
174
180
type = bool
You can’t perform that action at this time.
0 commit comments