diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index 5b236d6..8e5e85a 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/basic/main.tf b/examples/basic/main.tf index 9ee8923..9d60796 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -61,8 +61,10 @@ module "managed_instance_group" { } module "load_balancer_default" { + source = "terraform-google-modules/lb/google" + version = "~> 4.0" + name = "basic-load-balancer-default" - source = "../../" region = var.region service_port = 80 network = google_compute_network.network.name @@ -71,8 +73,10 @@ module "load_balancer_default" { } module "load_balancer_no_hc" { + source = "terraform-google-modules/lb/google" + version = "~> 4.0" + name = "basic-load-balancer-no-hc" - source = "../../" region = var.region service_port = 80 network = google_compute_network.network.name @@ -82,8 +86,10 @@ module "load_balancer_no_hc" { } module "load_balancer_custom_hc" { + source = "terraform-google-modules/lb/google" + version = "~> 4.0" + name = "basic-load-balancer-custom-hc" - source = "../../" region = var.region service_port = 8080 network = google_compute_network.network.name diff --git a/examples/regional_proxy_lb_mig/main.tf b/examples/regional_proxy_lb_mig/main.tf index d658cd9..b2b1c07 100644 --- a/examples/regional_proxy_lb_mig/main.tf +++ b/examples/regional_proxy_lb_mig/main.tf @@ -78,7 +78,9 @@ module "mig" { module "regional_proxy_lb" { - source = "../../modules/regional_proxy_lb" + source = "terraform-google-modules/lb/google//modules/regional_proxy_lb" + version = "~> 4.0" + name = "my-tcp-lb" region = var.region project = var.project_id