Add managed folders suports to gcs module (#2530)
* Add RPO, make versioning dynamic * Add manaed folders * Change autoclass and cors defaults to null * Update README * Add iam_by_principals * Add managed folders var description * Remove need for managed folders to end in / * Add inventory to example * Update readme * Fix FAST tests
This commit is contained in:
@@ -49,11 +49,6 @@ locals {
|
||||
: null
|
||||
)
|
||||
} : {}
|
||||
gcs_storage_class = (
|
||||
length(split("-", var.log_locations.storage)) < 2
|
||||
? "MULTI_REGIONAL"
|
||||
: "REGIONAL"
|
||||
)
|
||||
log_types = toset([for k, v in var.log_sinks : v.type])
|
||||
log_keys = {
|
||||
for service, key in local._log_keys : service => key if key != null
|
||||
@@ -110,7 +105,6 @@ module "log-export-gcs" {
|
||||
name = "audit-logs"
|
||||
prefix = var.prefix
|
||||
location = replace(var.log_locations.storage, "europe", "EU")
|
||||
storage_class = local.gcs_storage_class
|
||||
encryption_key = var.enable_features.encryption ? module.log-kms[var.log_locations.storage].keys["storage"].id : null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user