File tree 4 files changed +48
-0
lines changed
templates/terraform/examples
4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ examples:
123
123
vars :
124
124
backend_service_name : ' backend-service'
125
125
health_check_name : ' health-check'
126
+ - name : ' backend_service_ip_address_selection_policy'
127
+ primary_resource_id : ' default'
128
+ vars :
129
+ backend_service_name : ' backend-service'
126
130
parameters :
127
131
properties :
128
132
- name : ' affinityCookieTtlSec'
@@ -772,6 +776,14 @@ properties:
772
776
OAuth2 Client Secret SHA-256 for IAP
773
777
sensitive : true
774
778
output : true
779
+ - name : ' ipAddressSelectionPolicy'
780
+ type : Enum
781
+ description : |
782
+ Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC).
783
+ enum_values :
784
+ - ' IPV4_ONLY'
785
+ - ' PREFER_IPV6'
786
+ - ' IPV6_ONLY'
775
787
- name : ' loadBalancingScheme'
776
788
type : Enum
777
789
description : |
Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ examples:
115
115
vars :
116
116
region_backend_service_name : ' region-service'
117
117
health_check_name : ' rbs-health-check'
118
+ - name : ' region_backend_service_ip_address_selection_policy'
119
+ primary_resource_id : ' default'
120
+ vars :
121
+ region_backend_service_name : ' region-service'
122
+ health_check_name : ' rbs-health-check'
118
123
parameters :
119
124
- name : ' region'
120
125
type : ResourceRef
@@ -777,6 +782,14 @@ properties:
777
782
OAuth2 Client Secret SHA-256 for IAP
778
783
sensitive : true
779
784
output : true
785
+ - name : ' ipAddressSelectionPolicy'
786
+ type : Enum
787
+ description : |
788
+ Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC).
789
+ enum_values :
790
+ - ' IPV4_ONLY'
791
+ - ' PREFER_IPV6'
792
+ - ' IPV6_ONLY'
780
793
- name : ' loadBalancingScheme'
781
794
type : Enum
782
795
description : |
Original file line number Diff line number Diff line change
1
+ resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
2
+ name = "{{index $.Vars "backend_service_name"}}"
3
+ load_balancing_scheme = "EXTERNAL_MANAGED"
4
+ ip_address_selection_policy = "IPV6_ONLY"
5
+ }
Original file line number Diff line number Diff line change
1
+ resource "google_compute_region_backend_service" "{{$.PrimaryResourceId}}" {
2
+ name = "{{index $.Vars "region_backend_service_name"}}"
3
+ region = "us-central1"
4
+ health_checks = [google_compute_region_health_check.health_check.id]
5
+
6
+ load_balancing_scheme = "EXTERNAL_MANAGED"
7
+ protocol = "HTTP"
8
+ ip_address_selection_policy = "IPV6_ONLY"
9
+ }
10
+
11
+ resource "google_compute_region_health_check" "health_check" {
12
+ name = "{{index $.Vars "health_check_name"}}"
13
+ region = "us-central1"
14
+
15
+ tcp_health_check {
16
+ port = 80
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments