Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
feat(examples): adapt examples for custom nat gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
Manon committed Jan 25, 2023
1 parent 060bdc4 commit cec8f94
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
27 changes: 23 additions & 4 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,34 @@ module "basic" {
source = "../.."

name = "testing"
project_id = "library-344516"
project_id = "padok-library-gcp-host"

nats = {
"europe-west1" = {
mode = "DYNAMIC_PORT_ALLOCATION"
min_ports = 64
max_ports = 2048
}
"europe-west2" = {
min_ports = 1024
}
}

subnets = {
"eu" = {
name = "eu"
"eu-1" = {
name = "eu-1"
region = "europe-west1"
primary_cidr = "172.16.0.0/20"
serverless_cidr = ""
secondary_ranges = {}
},
"eu-2" = {
name = "eu-2"
region = "europe-west2"
primary_cidr = "172.16.48.0/20"
serverless_cidr = "172.16.80.0/28"
secondary_ranges = {}
},
}
"us" = {
name = "us"
region = "northamerica-northeast1"
Expand Down
9 changes: 5 additions & 4 deletions examples/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ module "gke" {

name = "testing"
project_id = "library-344516"

subnets = {
"eu" = {
name = "eu"
region = "europe-west1"
primary_cidr = "172.16.48.0/20"
serverless_cidr = ""
name = "eu"
region = "europe-west1"
primary_cidr = "172.16.48.0/20"
serverless_cidr = ""
secondary_ranges = {
pods = {
name = "gke-pods-main"
Expand Down

0 comments on commit cec8f94

Please sign in to comment.