Skip to content

Commit

Permalink
chore: update examples to use registry
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb committed Dec 18, 2023
1 parent 2e94ddf commit f55392e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
8 changes: 6 additions & 2 deletions examples/dlp_api_example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ locals {
}

module "dataflow-bucket" {
source = "../../modules/dataflow_bucket"
source = "terraform-google-modules/dataflow/google//modules/dataflow_bucket"
version = "~> 2.0"

name = local.gcs_bucket_name
region = var.region
project_id = var.project_id
Expand Down Expand Up @@ -107,7 +109,9 @@ EOF
}

module "dataflow-job" {
source = "../../"
source = "terraform-google-modules/dataflow/google"
version = "~> 2.0"

project_id = var.project_id
name = "dlp_example_${null_resource.download_sample_cc_into_gcs.id}_${null_resource.deinspection_template_setup.id}"
on_delete = "cancel"
Expand Down
11 changes: 8 additions & 3 deletions examples/simple_example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ module "vpc" {
}

module "dataflow-bucket" {
source = "../../modules/dataflow_bucket"
source = "terraform-google-modules/dataflow/google//modules/dataflow_bucket"
version = "~> 2.0"

name = local.gcs_bucket_name
region = var.region
project_id = var.project_id
force_destroy = var.force_destroy
}

module "dataflow-job" {
source = "../../"
source = "terraform-google-modules/dataflow/google"
version = "~> 2.0"

project_id = var.project_id
name = "wordcount-terraform-example"
on_delete = "cancel"
Expand All @@ -80,7 +84,8 @@ module "dataflow-job" {
}

module "dataflow-job-2" {
source = "../../"
source = "terraform-google-modules/dataflow/google"
version = "~> 2.0"
project_id = var.project_id
name = "wordcount-terraform-example-2"
on_delete = "cancel"
Expand Down

0 comments on commit f55392e

Please sign in to comment.