Skip to content

Commit

Permalink
chore: update examples to use registry (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Dec 19, 2023
1 parent 6d8ff7a commit 94f3556
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 11 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/multi_external_vpn_gateways/prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ resource "google_compute_external_vpn_gateway" "external_gateway2" {
# VPN by this below tunnels configuration.

module "vpn-ha-to-onprem" {
source = "../../modules/vpn_ha"
source = "terraform-google-modules/vpn/google//modules/vpn_ha"
version = "~> 4.0"

project_id = var.prod_project_id
region = var.region
network = var.prod_network_self_link
Expand Down
12 changes: 9 additions & 3 deletions examples/multi_tunnels/mgmt.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ resource "google_compute_router" "cr-uscentral1-to-prod-vpc-02" {
}

module "vpn-gw-us-ce1-mgt-prd-internal-01" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.mgt_project_id
network = var.mgt_network
region = "us-central1"
Expand All @@ -56,7 +58,9 @@ module "vpn-gw-us-ce1-mgt-prd-internal-01" {
}

module "vpn-gw-us-ce1-mgt-prd-internal-02" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.mgt_project_id
network = var.mgt_network
region = "us-central1"
Expand All @@ -74,7 +78,9 @@ module "vpn-gw-us-ce1-mgt-prd-internal-02" {
}

module "vpn-gw-us-we1-mgt-prd-internal" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.mgt_project_id
network = var.mgt_network
region = "us-west1"
Expand Down
12 changes: 9 additions & 3 deletions examples/multi_tunnels/prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ resource "google_compute_router" "cr-uscentral1-to-mgt-vpc-02" {
}

module "vpn-gw-us-ce1-prd-mgt-internal-01" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.prod_project_id
network = var.prod_network
region = "us-central1"
Expand All @@ -56,7 +58,9 @@ module "vpn-gw-us-ce1-prd-mgt-internal-01" {
}

module "vpn-gw-us-ce1-prd-mgt-internal-02" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.prod_project_id
network = var.prod_network
region = "us-central1"
Expand All @@ -74,7 +78,9 @@ module "vpn-gw-us-ce1-prd-mgt-internal-02" {
}

module "vpn-gw-us-we1-prd-mgt-internal" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.prod_project_id
network = var.prod_network
region = "us-west1"
Expand Down
4 changes: 3 additions & 1 deletion examples/single_tunnels/mgmt.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

module "vpn-gw-us-we1-mgt-prd-internal" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.mgt_project_id
network = var.mgt_network
region = "us-west1"
Expand Down
4 changes: 3 additions & 1 deletion examples/single_tunnels/prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

module "vpn-gw-us-we1-prd-mgt-internal" {
source = "../../"
source = "terraform-google-modules/vpn/google"
version = "~> 4.0"

project_id = var.prod_project_id
network = var.prod_network
region = "us-west1"
Expand Down
4 changes: 3 additions & 1 deletion examples/vpn_ha/mgmt.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

##To Prod VPC
module "vpn-ha-to-prod" {
source = "../../modules/vpn_ha"
source = "terraform-google-modules/vpn/google//modules/vpn_ha"
version = "~> 4.0"

project_id = var.mgt_project_id
region = var.region
network = var.mgt_network_self_link
Expand Down
4 changes: 3 additions & 1 deletion examples/vpn_ha/prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

##To MGMT VPC
module "vpn-ha-to-mgmt" {
source = "../../modules/vpn_ha"
source = "terraform-google-modules/vpn/google//modules/vpn_ha"
version = "~> 4.0"

project_id = var.prod_project_id
region = var.region
network = var.prod_network_self_link
Expand Down

0 comments on commit 94f3556

Please sign in to comment.