File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,36 @@ provider "google-beta"{
113
113
zone = "us-central1-a"
114
114
}
115
115
```
116
+ <div class = " oics-button " style =" float : right ; margin : 0 0 -15px " >
117
+ <a href =" https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.jpy.wang%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=subnetwork_internal_l7lb&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md " target =" _blank " >
118
+ <img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
119
+ </a >
120
+ </div >
121
+ ## Example Usage - Subnetwork Internal L7lb
122
+
123
+
124
+ ``` hcl
125
+ provider "google-beta" {
126
+ region = "us-central1"
127
+ zone = "us-central1-a"
128
+ }
129
+
130
+ resource "google_compute_subnetwork" "network-for-l7lb" {
131
+ provider = "google-beta"
132
+ name = "l7lb-test-subnetwork"
133
+ ip_cidr_range = "10.0.0.0/22"
134
+ region = "us-central1"
135
+ purpose = "INTERNAL_HTTPS_LOAD_BALANCER"
136
+ role = "ACTIVE"
137
+ network = "${google_compute_network.custom-test.self_link}"
138
+ }
139
+
140
+ resource "google_compute_network" "custom-test" {
141
+ provider = "google-beta"
142
+ name = "l7lb-test-network"
143
+ auto_create_subnetworks = false
144
+ }
145
+ ```
116
146
117
147
## Argument Reference
118
148
You can’t perform that action at this time.
0 commit comments