diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index cc143aa..16607d4 100644 --- a/build/int.cloudbuild.yaml +++ b/build/int.cloudbuild.yaml @@ -14,6 +14,9 @@ timeout: 7200s 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 && sleep 120'] diff --git a/examples/security-policy-all/main.tf b/examples/security-policy-all/main.tf index c2cd610..4ab8eac 100644 --- a/examples/security-policy-all/main.tf +++ b/examples/security-policy-all/main.tf @@ -18,7 +18,8 @@ resource "random_id" "suffix" { byte_length = 4 } module "cloud_armor" { - source = "../../" + source = "GoogleCloudPlatform/cloud-armor/google" + version = "~> 2.0" project_id = var.project_id name = "test-casp-policy-${random_id.suffix.hex}" diff --git a/examples/security-policy-edge/main.tf b/examples/security-policy-edge/main.tf index 486fc51..4157b28 100644 --- a/examples/security-policy-edge/main.tf +++ b/examples/security-policy-edge/main.tf @@ -18,7 +18,8 @@ resource "random_id" "suffix" { byte_length = 4 } module "cloud_armor" { - source = "../../" + source = "GoogleCloudPlatform/cloud-armor/google" + version = "~> 2.0" project_id = var.project_id name = "test-casp-edge-policy-${random_id.suffix.hex}" diff --git a/examples/security-policy-managed-protection-plus/main.tf b/examples/security-policy-managed-protection-plus/main.tf index 9a21baa..da68838 100644 --- a/examples/security-policy-managed-protection-plus/main.tf +++ b/examples/security-policy-managed-protection-plus/main.tf @@ -18,7 +18,8 @@ resource "random_id" "suffix" { byte_length = 4 } module "cloud_armor" { - source = "../../" + source = "GoogleCloudPlatform/cloud-armor/google" + version = "~> 2.0" project_id = var.project_id name = "test-camp-policy-${random_id.suffix.hex}" diff --git a/examples/security-policy-recaptcha/main.tf b/examples/security-policy-recaptcha/main.tf index c86417e..48ace6d 100644 --- a/examples/security-policy-recaptcha/main.tf +++ b/examples/security-policy-recaptcha/main.tf @@ -35,7 +35,8 @@ resource "random_id" "suffix" { } module "cloud_armor" { - source = "../../" + source = "GoogleCloudPlatform/cloud-armor/google" + version = "~> 2.0" project_id = var.project_id name = "test-policy-recaptcha-${random_id.suffix.hex}" diff --git a/examples/simple-example/main.tf b/examples/simple-example/main.tf index 29e5789..4f9ed9a 100644 --- a/examples/simple-example/main.tf +++ b/examples/simple-example/main.tf @@ -19,7 +19,8 @@ resource "random_id" "suffix" { } module "cloud_armor" { - source = "../../" + source = "GoogleCloudPlatform/cloud-armor/google" + version = "~> 2.0" project_id = var.project_id name = "test-casp-policy-${random_id.suffix.hex}"