From 6fa84e2cf72087ce7f2d3adee152dbfcd8a2617a Mon Sep 17 00:00:00 2001 From: bharathkkb Date: Mon, 18 Dec 2023 20:19:06 +0000 Subject: [PATCH] chore: update examples to use registry --- build/int.cloudbuild.yaml | 3 +++ examples/agent_policy_detailed_example/main.tf | 4 +++- examples/agent_policy_simple_example/main.tf | 4 +++- examples/agent_policy_update_example/main.tf | 4 +++- examples/https_uptime_url_check/main.tf | 3 ++- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index d1436a8..34dfd90 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'] - name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS' id: 'bats' args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && test_bats'] diff --git a/examples/agent_policy_detailed_example/main.tf b/examples/agent_policy_detailed_example/main.tf index 3b09399..1bd3413 100644 --- a/examples/agent_policy_detailed_example/main.tf +++ b/examples/agent_policy_detailed_example/main.tf @@ -15,7 +15,9 @@ */ module "agent_policy_detailed" { - source = "./../../modules/agent-policy" + source = "terraform-google-modules/cloud-operations/google//modules/agent-policy" + version = "~> 0.4" + project_id = var.project_id policy_id = "ops-agents-test-policy-detailed" description = "an example policy description" diff --git a/examples/agent_policy_simple_example/main.tf b/examples/agent_policy_simple_example/main.tf index f41819b..54f335f 100644 --- a/examples/agent_policy_simple_example/main.tf +++ b/examples/agent_policy_simple_example/main.tf @@ -15,7 +15,9 @@ */ module "agent_policy_simple" { - source = "./../../modules/agent-policy" + source = "terraform-google-modules/cloud-operations/google//modules/agent-policy" + version = "~> 0.4" + project_id = var.project_id policy_id = "ops-agents-test-policy-simple" agent_rules = [ diff --git a/examples/agent_policy_update_example/main.tf b/examples/agent_policy_update_example/main.tf index bff8d76..eb0b55e 100644 --- a/examples/agent_policy_update_example/main.tf +++ b/examples/agent_policy_update_example/main.tf @@ -15,7 +15,9 @@ */ module "agent_policy_update" { - source = "./../../modules/agent-policy" + source = "terraform-google-modules/cloud-operations/google//modules/agent-policy" + version = "~> 0.4" + project_id = var.project_id policy_id = "ops-agents-test-policy-update" description = var.description diff --git a/examples/https_uptime_url_check/main.tf b/examples/https_uptime_url_check/main.tf index 0459bdb..da01a11 100644 --- a/examples/https_uptime_url_check/main.tf +++ b/examples/https_uptime_url_check/main.tf @@ -15,7 +15,8 @@ */ module "uptime-check" { - source = "./../../modules/simple-uptime-check" + source = "terraform-google-modules/cloud-operations/google//modules/simple-uptime-check" + version = "~> 0.4" project_id = var.project_id uptime_check_display_name = var.uptime_check_display_name