diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index 697abf2..5c5cb95 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/advanced/main.tf b/examples/advanced/main.tf index 0029ba6..7bdb387 100644 --- a/examples/advanced/main.tf +++ b/examples/advanced/main.tf @@ -15,7 +15,9 @@ */ module "cloud-nat" { - source = "../../" + source = "terraform-google-modules/cloud-nat/google" + version = "~> 5.0" + project_id = var.project_id region = var.region router = var.router_name diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 7d1f469..0a93f6b 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -15,7 +15,9 @@ */ module "cloud-nat" { - source = "../../" + source = "terraform-google-modules/cloud-nat/google" + version = "~> 5.0" + router = var.router_name project_id = var.project_id region = var.region diff --git a/examples/nat_with_compute_engine/main.tf b/examples/nat_with_compute_engine/main.tf index 4dcadd7..6ccd278 100644 --- a/examples/nat_with_compute_engine/main.tf +++ b/examples/nat_with_compute_engine/main.tf @@ -84,8 +84,9 @@ resource "google_compute_router" "router" { # [START cloudnat_nat_gce] module "cloud-nat" { - source = "terraform-google-modules/cloud-nat/google" - version = "~> 4.0" + source = "terraform-google-modules/cloud-nat/google" + version = "~> 5.0" + project_id = var.project_id region = "us-east4" router = google_compute_router.router.name