diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index c02c1b0..03f40b2 100644 --- a/build/int.cloudbuild.yaml +++ b/build/int.cloudbuild.yaml @@ -14,6 +14,9 @@ timeout: 1800s 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/advance/main.tf b/examples/advance/main.tf index b1f6e1b..7c611f9 100644 --- a/examples/advance/main.tf +++ b/examples/advance/main.tf @@ -94,7 +94,9 @@ resource "google_project_iam_member" "main" { Create a GPU Datalab instance *****************************************/ module "datalab" { - source = "../../modules/instance" + source = "terraform-google-modules/datalab/google//modules/instance" + version = "~> 2.0" + project_id = var.project_id name = "${var.name}-gpu" zone = var.zone diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 47b51ef..81def31 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -79,7 +79,8 @@ resource "google_compute_router_nat" "main" { Create a default Datalab instance *****************************************/ module "datalab" { - source = "../../modules/instance" + source = "terraform-google-modules/datalab/google//modules/instance" + version = "~> 2.0" project_id = var.project_id name = var.name zone = var.zone