Skip to content

Commit

Permalink
chore: update examples to use registry (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Dec 19, 2023
1 parent cb476c6 commit 388ae52
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 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/logs-slack-alerts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

module "log_slack_alerts_example" {
source = "../../"
source = "terraform-google-modules/scheduled-function/google"
version = "~> 3.0"

project_id = var.project_id
job_name = "logs_query"
job_description = "Scheduled time to run audit query to check for errors"
Expand Down
4 changes: 3 additions & 1 deletion examples/pubsub_scheduled/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ resource "random_pet" "main" {
}

module "pubsub_scheduled_example" {
source = "../../"
source = "terraform-google-modules/scheduled-function/google"
version = "~> 3.0"

project_id = var.project_id
job_name = "pubsub-example-${random_pet.main.id}"
job_schedule = "*/5 * * * *"
Expand Down
8 changes: 6 additions & 2 deletions examples/pubsub_scheduled_multiple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

module "pubsub_scheduled_1" {
source = "../../"
source = "terraform-google-modules/scheduled-function/google"
version = "~> 3.0"

project_id = var.project_id
job_name = "pubsub-example"
job_schedule = "*/5 * * * *"
Expand All @@ -27,7 +29,9 @@ module "pubsub_scheduled_1" {
}

module "pubsub_scheduled_2" {
source = "../../"
source = "terraform-google-modules/scheduled-function/google"
version = "~> 3.0"

project_id = var.project_id
function_entry_point = "doSomething2"
function_source_directory = "${path.module}/function_source_2"
Expand Down

0 comments on commit 388ae52

Please sign in to comment.