diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index 03a60be..e6e72ca 100644 --- a/build/int.cloudbuild.yaml +++ b/build/int.cloudbuild.yaml @@ -14,6 +14,9 @@ timeout: 3600s steps: +- id: swap-module-refs + name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS' + args: ['module-swapper'] - id: prepare name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS' args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && prepare_environment'] diff --git a/examples/key_distributor/main.tf b/examples/key_distributor/main.tf index ebdf26c..0d59a45 100644 --- a/examples/key_distributor/main.tf +++ b/examples/key_distributor/main.tf @@ -15,7 +15,8 @@ */ module "distributor" { - source = "../../modules/key-distributor" + source = "terraform-google-modules/service-accounts/google//modules/key-distributor" + version = "~> 4.0" project_id = var.project_id public_key_file = var.public_key_file diff --git a/examples/multiple_service_accounts/main.tf b/examples/multiple_service_accounts/main.tf index b4fd667..90c08fa 100644 --- a/examples/multiple_service_accounts/main.tf +++ b/examples/multiple_service_accounts/main.tf @@ -15,7 +15,9 @@ */ module "service_accounts" { - source = "../.." + source = "terraform-google-modules/service-accounts/google" + version = "~> 4.0" + project_id = var.project_id prefix = "" names = ["test-first", "test-second"] diff --git a/examples/single_service_account/main.tf b/examples/single_service_account/main.tf index f397cfe..00428e1 100644 --- a/examples/single_service_account/main.tf +++ b/examples/single_service_account/main.tf @@ -15,7 +15,9 @@ */ module "service_accounts" { - source = "../.." + source = "terraform-google-modules/service-accounts/google" + version = "~> 4.0" + project_id = var.project_id prefix = var.prefix names = ["single-account"]