Skip to content

Commit d295755

Browse files
Fix: bucket name length exceeds 63 characters with non-US region deployment (#1347)
1 parent 0bc707b commit d295755

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

1-org/modules/cai-monitoring/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module "cloudfunction_source_bucket" {
7474
version = "~> 6.0"
7575

7676
project_id = var.project_id
77-
name = "bkt-cai-monitoring-${random_id.suffix.hex}-sources-${data.google_project.project.number}-${var.location}"
77+
name = "bkt-cai-monitoring-${random_id.suffix.hex}-sources-${data.google_project.project.number}"
7878
location = var.location
7979
storage_class = "REGIONAL"
8080
force_destroy = true

4-projects/modules/base_env/example_storage_cmek.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ resource "random_string" "bucket_name" {
4444

4545
module "gcs_buckets" {
4646
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
47-
version = "~> 6.0"
47+
version = "~> 6.0.0"
4848

4949
project_id = module.base_shared_vpc_project.project_id
5050
location = var.location_gcs
51-
name = "${var.gcs_bucket_prefix}-${module.base_shared_vpc_project.project_id}-${lower(var.location_gcs)}-cmek-encrypted-${random_string.bucket_name.result}"
51+
name = "${var.gcs_bucket_prefix}-${module.base_shared_vpc_project.project_id}-cmek-encrypted-${random_string.bucket_name.result}"
5252
bucket_policy_only = true
5353
custom_placement_config = var.gcs_custom_placement_config
5454

0 commit comments

Comments
 (0)