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 a54696b commit b0b4c48
Show file tree
Hide file tree
Showing 4 changed files with 12 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/advanced/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

module "cloud-nat" {
source = "../../"
source = "terraform-google-modules/cloud-nat/google"
version = "~> 5.0"

project_id = var.project_id
region = var.region
router = var.router_name
Expand Down
4 changes: 3 additions & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

module "cloud-nat" {
source = "../../"
source = "terraform-google-modules/cloud-nat/google"
version = "~> 5.0"

router = var.router_name
project_id = var.project_id
region = var.region
Expand Down
5 changes: 3 additions & 2 deletions examples/nat_with_compute_engine/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ resource "google_compute_router" "router" {

# [START cloudnat_nat_gce]
module "cloud-nat" {
source = "terraform-google-modules/cloud-nat/google"
version = "~> 4.0"
source = "terraform-google-modules/cloud-nat/google"
version = "~> 5.0"

project_id = var.project_id
region = "us-east4"
router = google_compute_router.router.name
Expand Down

0 comments on commit b0b4c48

Please sign in to comment.