Skip to content

Commit 824ea36

Browse files
committed
Merge remote-tracking branch 'origin/master' into upgrade-modules-version
2 parents 254edb9 + aca3400 commit 824ea36

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
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 = "~> 8.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module "gcs_buckets" {
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

helpers/foundation-deployer/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Helper tool to deploy the Terraform example foundation using Cloud Build and Clo
1111
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) version 2.28.0 or later
1212
- [Terraform](https://www.terraform.io/downloads.html) version 1.5.7 or later
1313
- See `0-bootstrap` README for additional IAM [requirements](../../0-bootstrap/README.md#prerequisites) on the user deploying the Foundation.
14+
- To enable Security Command Center, choose a Security Command Center tier and create and grant permissions for the Security Command Center service account as described in [Setting up Security Command Center](https://cloud.google.com/security-command-center/docs/quickstart-security-command-center).
1415

1516
Your environment need to use the same [Terraform](https://www.terraform.io/downloads.html) version used on the build pipeline.
1617
Otherwise, you might experience Terraform state snapshot lock errors.

helpers/foundation-deployer/global.tfvars.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,5 @@ target_name_server_addresses = [
144144
// Can be used to override the default region set in 0-bootstrap
145145
// See https://github.com/terraform-google-modules/terraform-example-foundation/blob/master/4-projects/business_unit_1/production/README.md#outputs
146146

147-
gcs_location = "US"
148-
kms_location = "us"
147+
location_kms = "us"
148+
location_gcs = "US"

helpers/foundation-deployer/stages/apply.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ func DeployProjectsStage(t testing.TB, s steps.Steps, tfvars GlobalTFVars, outpu
344344
}
345345
//for each environment
346346
envTfvars := ProjEnvTfvars{
347-
ProjectsKMSLocation: tfvars.ProjectsKMSLocation,
348-
ProjectsGCSLocation: tfvars.ProjectsGCSLocation,
347+
LocationKMS: tfvars.LocationKMS,
348+
LocationGCS: tfvars.LocationGCS,
349349
FolderDeletionProtection: tfvars.FolderDeletionProtection,
350350
ProjectDeletionPolicy: tfvars.ProjectDeletionPolicy,
351351
}

helpers/foundation-deployer/stages/data.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ type GlobalTFVars struct {
152152
EnableHubAndSpoke bool `hcl:"enable_hub_and_spoke"`
153153
EnableHubAndSpokeTransitivity bool `hcl:"enable_hub_and_spoke_transitivity"`
154154
CreateUniqueTagKey bool `hcl:"create_unique_tag_key"`
155-
ProjectsKMSLocation string `hcl:"projects_kms_location"`
156-
ProjectsGCSLocation string `hcl:"projects_gcs_location"`
155+
LocationKMS string `hcl:"location_kms"`
156+
LocationGCS string `hcl:"location_gcs"`
157157
CodeCheckoutPath string `hcl:"code_checkout_path"`
158158
FoundationCodePath string `hcl:"foundation_code_path"`
159159
ValidatorProjectId *string `hcl:"validator_project_id"`
@@ -258,8 +258,8 @@ type ProjSharedTfvars struct {
258258
}
259259

260260
type ProjEnvTfvars struct {
261-
ProjectsKMSLocation string `hcl:"projects_kms_location"`
262-
ProjectsGCSLocation string `hcl:"projects_gcs_location"`
261+
LocationKMS string `hcl:"location_kms"`
262+
LocationGCS string `hcl:"location_gcs"`
263263
FolderDeletionProtection bool `hcl:"folder_deletion_protection"`
264264
ProjectDeletionPolicy string `hcl:"project_deletion_policy"`
265265
}

0 commit comments

Comments
 (0)