Skip to content

Commit

Permalink
chore: update examples to use registry (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored Dec 20, 2023
1 parent 3847dd9 commit d421cc2
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 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
3 changes: 2 additions & 1 deletion test/integration/advanced/testdata/TestAdvanced.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableEndpointIndependentMapping": false,
"enableDynamicPortAllocation": false,
"enableEndpointIndependentMapping": false,
"endpointTypes": [
"ENDPOINT_TYPE_VM"
],
Expand All @@ -12,5 +12,6 @@
"tcpEstablishedIdleTimeoutSec": 600,
"tcpTimeWaitTimeoutSec": 240,
"tcpTransitoryIdleTimeoutSec": 15,
"type": "PUBLIC",
"udpIdleTimeoutSec": 15
}
3 changes: 2 additions & 1 deletion test/integration/basic/testdata/TestBasic.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"autoNetworkTier": "PREMIUM",
"enableEndpointIndependentMapping": false,
"enableDynamicPortAllocation": false,
"enableEndpointIndependentMapping": false,
"endpointTypes": [
"ENDPOINT_TYPE_VM"
],
Expand All @@ -13,5 +13,6 @@
"tcpEstablishedIdleTimeoutSec": 1200,
"tcpTimeWaitTimeoutSec": 120,
"tcpTransitoryIdleTimeoutSec": 30,
"type": "PUBLIC",
"udpIdleTimeoutSec": 30
}
5 changes: 3 additions & 2 deletions test/integration/subnetworks/testdata/TestSubnetworks.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"enableEndpointIndependentMapping": false,
"enableDynamicPortAllocation": false,
"endpointTypes":[
"enableEndpointIndependentMapping": false,
"endpointTypes": [
"ENDPOINT_TYPE_VM"
],
"icmpIdleTimeoutSec": 15,
Expand All @@ -20,5 +20,6 @@
"tcpEstablishedIdleTimeoutSec": 600,
"tcpTimeWaitTimeoutSec": 240,
"tcpTransitoryIdleTimeoutSec": 15,
"type": "PUBLIC",
"udpIdleTimeoutSec": 15
}

0 comments on commit d421cc2

Please sign in to comment.