Skip to content

Commit

Permalink
solve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mariammartins committed Nov 11, 2024
2 parents 91ea10e + aca3400 commit a4e4d0a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion 1-org/modules/cai-monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module "cloudfunction_source_bucket" {
version = "~> 6.0"

project_id = var.project_id
name = "bkt-cai-monitoring-${random_id.suffix.hex}-sources-${data.google_project.project.number}-${var.location}"
name = "bkt-cai-monitoring-${random_id.suffix.hex}-sources-${data.google_project.project.number}"
location = var.location
storage_class = "REGIONAL"
force_destroy = true
Expand Down
5 changes: 2 additions & 3 deletions 4-projects/modules/base_env/example_storage_cmek.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ resource "random_string" "bucket_name" {
}

module "gcs_buckets" {
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
# Open Issue on version 6.1.0: https://github.com/terraform-google-modules/terraform-google-cloud-storage/issues/339
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
version = "~> 6.0.0"

project_id = module.base_shared_vpc_project.project_id
location = var.location_gcs
name = "${var.gcs_bucket_prefix}-${module.base_shared_vpc_project.project_id}-${lower(var.location_gcs)}-cmek-encrypted-${random_string.bucket_name.result}"
name = "${var.gcs_bucket_prefix}-${module.base_shared_vpc_project.project_id}-cmek-encrypted-${random_string.bucket_name.result}"
bucket_policy_only = true
custom_placement_config = var.gcs_custom_placement_config

Expand Down
1 change: 1 addition & 0 deletions helpers/foundation-deployer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Helper tool to deploy the Terraform example foundation using Cloud Build and Clo
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) version 2.28.0 or later
- [Terraform](https://www.terraform.io/downloads.html) version 1.5.7 or later
- See `0-bootstrap` README for additional IAM [requirements](../../0-bootstrap/README.md#prerequisites) on the user deploying the Foundation.
- 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).

Your environment need to use the same [Terraform](https://www.terraform.io/downloads.html) version used on the build pipeline.
Otherwise, you might experience Terraform state snapshot lock errors.
Expand Down
4 changes: 2 additions & 2 deletions helpers/foundation-deployer/global.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@ target_name_server_addresses = [
// Can be used to override the default region set in 0-bootstrap
// See https://github.com/terraform-google-modules/terraform-example-foundation/blob/master/4-projects/business_unit_1/production/README.md#outputs

gcs_location = "US"
kms_location = "us"
location_kms = "us"
location_gcs = "US"
4 changes: 2 additions & 2 deletions helpers/foundation-deployer/stages/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ func DeployProjectsStage(t testing.TB, s steps.Steps, tfvars GlobalTFVars, outpu
}
//for each environment
envTfvars := ProjEnvTfvars{
ProjectsKMSLocation: tfvars.ProjectsKMSLocation,
ProjectsGCSLocation: tfvars.ProjectsGCSLocation,
LocationKMS: tfvars.LocationKMS,
LocationGCS: tfvars.LocationGCS,
}
for _, envfile := range []string{
"development.auto.tfvars",
Expand Down
8 changes: 4 additions & 4 deletions helpers/foundation-deployer/stages/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ type GlobalTFVars struct {
EnableHubAndSpoke bool `hcl:"enable_hub_and_spoke"`
EnableHubAndSpokeTransitivity bool `hcl:"enable_hub_and_spoke_transitivity"`
CreateUniqueTagKey bool `hcl:"create_unique_tag_key"`
ProjectsKMSLocation string `hcl:"projects_kms_location"`
ProjectsGCSLocation string `hcl:"projects_gcs_location"`
LocationKMS string `hcl:"location_kms"`
LocationGCS string `hcl:"location_gcs"`
CodeCheckoutPath string `hcl:"code_checkout_path"`
FoundationCodePath string `hcl:"foundation_code_path"`
ValidatorProjectId *string `hcl:"validator_project_id"`
Expand Down Expand Up @@ -250,8 +250,8 @@ type ProjSharedTfvars struct {
}

type ProjEnvTfvars struct {
ProjectsKMSLocation string `hcl:"projects_kms_location"`
ProjectsGCSLocation string `hcl:"projects_gcs_location"`
LocationKMS string `hcl:"location_kms"`
LocationGCS string `hcl:"location_gcs"`
}

type AppInfraCommonTfvars struct {
Expand Down

0 comments on commit a4e4d0a

Please sign in to comment.