Skip to content

Commit

Permalink
chore: update examples to use registry (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Dec 21, 2023
1 parent af0f1c1 commit c9b2933
Show file tree
Hide file tree
Showing 3 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
12 changes: 9 additions & 3 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ module "managed_instance_group" {
}

module "load_balancer_default" {
source = "terraform-google-modules/lb/google"
version = "~> 4.0"

name = "basic-load-balancer-default"
source = "../../"
region = var.region
service_port = 80
network = google_compute_network.network.name
Expand All @@ -71,8 +73,10 @@ module "load_balancer_default" {
}

module "load_balancer_no_hc" {
source = "terraform-google-modules/lb/google"
version = "~> 4.0"

name = "basic-load-balancer-no-hc"
source = "../../"
region = var.region
service_port = 80
network = google_compute_network.network.name
Expand All @@ -82,8 +86,10 @@ module "load_balancer_no_hc" {
}

module "load_balancer_custom_hc" {
source = "terraform-google-modules/lb/google"
version = "~> 4.0"

name = "basic-load-balancer-custom-hc"
source = "../../"
region = var.region
service_port = 8080
network = google_compute_network.network.name
Expand Down
4 changes: 3 additions & 1 deletion examples/regional_proxy_lb_mig/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ module "mig" {


module "regional_proxy_lb" {
source = "../../modules/regional_proxy_lb"
source = "terraform-google-modules/lb/google//modules/regional_proxy_lb"
version = "~> 4.0"

name = "my-tcp-lb"
region = var.region
project = var.project_id
Expand Down

0 comments on commit c9b2933

Please sign in to comment.