Skip to content

Commit 596cee8

Browse files
Ty Larrabeemodular-magician
Ty Larrabee
authored andcommitted
Add purpose and role to subnetwork for L7 load balancing
Signed-off-by: Modular Magician <[email protected]>
1 parent 37dc50f commit 596cee8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

website/docs/r/compute_subnetwork.html.markdown

+30
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,36 @@ provider "google-beta"{
113113
zone = "us-central1-a"
114114
}
115115
```
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+
```
116146

117147
## Argument Reference
118148

0 commit comments

Comments
 (0)