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 a4886b9 commit 9ebabcb
Show file tree
Hide file tree
Showing 6 changed files with 18 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
4 changes: 3 additions & 1 deletion examples/bigquery/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ provider "google" {
}

module "pubsub" {
source = "../../"
source = "terraform-google-modules/pubsub/google"
version = "~> 6.0"

project_id = var.project_id
topic = "cft-tf-pubsub-topic-bigquery"
topic_labels = {
Expand Down
4 changes: 3 additions & 1 deletion examples/cloud_storage/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ provider "google" {
}

module "pubsub" {
source = "../../"
source = "terraform-google-modules/pubsub/google"
version = "~> 6.0"

project_id = var.project_id
topic = "cft-tf-pubsub-topic-cloud-storage"

Expand Down
4 changes: 3 additions & 1 deletion examples/kms/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ resource "google_project_iam_member" "project" {
}

module "pubsub" {
source = "../../"
source = "terraform-google-modules/pubsub/google"
version = "~> 6.0"

project_id = var.project_id
topic = var.topic_name
topic_labels = var.topic_labels
Expand Down
4 changes: 3 additions & 1 deletion examples/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ provider "google" {
}

module "pubsub" {
source = "../../"
source = "terraform-google-modules/pubsub/google"
version = "~> 6.0"

project_id = var.project_id
topic = "cft-tf-pubsub-topic"
topic_labels = {
Expand Down
4 changes: 3 additions & 1 deletion examples/subscriptions_only/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ resource "google_pubsub_topic" "example" {

}
module "pubsub" {
source = "../../"
source = "terraform-google-modules/pubsub/google"
version = "~> 6.0"

project_id = var.project_id
create_topic = false
create_subscriptions = true
Expand Down

0 comments on commit 9ebabcb

Please sign in to comment.