From 6c9d2e9ef378e615dcf94b30765509c037304672 Mon Sep 17 00:00:00 2001 From: bharathkkb Date: Mon, 18 Dec 2023 20:19:08 +0000 Subject: [PATCH] chore: update examples to use registry --- build/int.cloudbuild.yaml | 3 +++ examples/advance/main.tf | 4 +++- examples/basic/main.tf | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) 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