@@ -17,10 +17,7 @@ resource "google_compute_firewall" "proxy_firewall" {
1717
1818 ports = [
1919 var . proxy_ports [" epp" ],
20- var . proxy_ports [" whois" ],
2120 var . proxy_ports [" health_check" ],
22- var . proxy_ports [" http-whois" ],
23- var . proxy_ports [" https-whois" ],
2421 ]
2522 }
2623
@@ -44,21 +41,6 @@ resource "google_compute_health_check" "proxy_health_check" {
4441 }
4542}
4643
47- resource "google_compute_health_check" "proxy_http_health_check" {
48- name = " proxy-http-health-check${ var . suffix } "
49-
50- http_health_check {
51- host = " health-check.invalid"
52- port = var. proxy_ports [" http-whois" ]
53- request_path = " /"
54- }
55- }
56-
57- resource "google_compute_url_map" "proxy_url_map" {
58- name = " proxy-url-map${ var . suffix } "
59- default_service = google_compute_backend_service. http_whois_backend_service . self_link
60- }
61-
6244resource "google_compute_backend_service" "epp_backend_service" {
6345 name = " epp-backend-service${ var . suffix } "
6446 protocol = " TCP"
@@ -82,97 +64,12 @@ resource "google_compute_backend_service" "epp_backend_service" {
8264 ]
8365}
8466
85- resource "google_compute_backend_service" "whois_backend_service" {
86- name = " whois-backend-service${ var . suffix } "
87- protocol = " TCP"
88- timeout_sec = 60
89- port_name = " whois${ var . suffix } "
90-
91- backend {
92- group = var. proxy_instance_groups [" americas" ]
93- }
94-
95- backend {
96- group = var. proxy_instance_groups [" emea" ]
97- }
98-
99- backend {
100- group = var. proxy_instance_groups [" apac" ]
101- }
102-
103- health_checks = [
104- google_compute_health_check . proxy_health_check . self_link ,
105- ]
106- }
107-
108- resource "google_compute_backend_service" "https_whois_backend_service" {
109- name = " https-whois-backend-service${ var . suffix } "
110- protocol = " TCP"
111- timeout_sec = 60
112- port_name = " https-whois${ var . suffix } "
113-
114- backend {
115- group = var. proxy_instance_groups [" americas" ]
116- }
117-
118- backend {
119- group = var. proxy_instance_groups [" emea" ]
120- }
121-
122- backend {
123- group = var. proxy_instance_groups [" apac" ]
124- }
125-
126- health_checks = [
127- google_compute_health_check . proxy_health_check . self_link ,
128- ]
129- }
130-
131- resource "google_compute_backend_service" "http_whois_backend_service" {
132- name = " http-whois-backend-service${ var . suffix } "
133- protocol = " HTTP"
134- timeout_sec = 60
135- port_name = " http-whois${ var . suffix } "
136-
137- backend {
138- group = var. proxy_instance_groups [" americas" ]
139- }
140-
141- backend {
142- group = var. proxy_instance_groups [" emea" ]
143- }
144-
145- backend {
146- group = var. proxy_instance_groups [" apac" ]
147- }
148-
149- health_checks = [
150- google_compute_health_check . proxy_http_health_check . self_link ,
151- ]
152- }
153-
15467resource "google_compute_target_tcp_proxy" "epp_tcp_proxy" {
15568 name = " epp-tcp-proxy${ var . suffix } "
15669 proxy_header = " PROXY_V1"
15770 backend_service = google_compute_backend_service. epp_backend_service . self_link
15871}
15972
160- resource "google_compute_target_tcp_proxy" "whois_tcp_proxy" {
161- name = " whois-tcp-proxy${ var . suffix } "
162- proxy_header = " PROXY_V1"
163- backend_service = google_compute_backend_service. whois_backend_service . self_link
164- }
165-
166- resource "google_compute_target_tcp_proxy" "https_whois_tcp_proxy" {
167- name = " https-whois-tcp-proxy${ var . suffix } "
168- backend_service = google_compute_backend_service. https_whois_backend_service . self_link
169- }
170-
171- resource "google_compute_target_http_proxy" "http_whois_http_proxy" {
172- name = " http-whois-tcp-proxy${ var . suffix } "
173- url_map = google_compute_url_map. proxy_url_map . self_link
174- }
175-
17673resource "google_compute_global_forwarding_rule" "epp_ipv4_forwarding_rule" {
17774 name = " epp-ipv4-forwarding-rule${ var . suffix } "
17875 ip_address = google_compute_global_address. proxy_ipv4_address . address
@@ -186,49 +83,3 @@ resource "google_compute_global_forwarding_rule" "epp_ipv6_forwarding_rule" {
18683 target = google_compute_target_tcp_proxy. epp_tcp_proxy . self_link
18784 port_range = " 700"
18885}
189-
190- resource "google_compute_global_forwarding_rule" "whois_ipv4_forwarding_rule" {
191- name = " whois-ipv4-forwarding-rule${ var . suffix } "
192- ip_address = google_compute_global_address. proxy_ipv4_address . address
193- target = google_compute_target_tcp_proxy. whois_tcp_proxy . self_link
194- port_range = " 43"
195- }
196-
197- resource "google_compute_global_forwarding_rule" "whois_ipv6_forwarding_rule" {
198- name = " whois-ipv6-forwarding-rule${ var . suffix } "
199- ip_address = google_compute_global_address. proxy_ipv6_address . address
200- target = google_compute_target_tcp_proxy. whois_tcp_proxy . self_link
201- port_range = " 43"
202- }
203-
204- resource "google_compute_global_forwarding_rule" "https_whois_ipv4_forwarding_rule" {
205- name = " https-whois-ipv4-forwarding-rule${ var . suffix } "
206- ip_address = google_compute_global_address. proxy_ipv4_address . address
207- target = google_compute_target_tcp_proxy. https_whois_tcp_proxy . self_link
208- port_range = " 443"
209- count = var. public_web_whois
210- }
211-
212- resource "google_compute_global_forwarding_rule" "https_whois_ipv6_forwarding_rule" {
213- name = " https-whois-ipv6-forwarding-rule${ var . suffix } "
214- ip_address = google_compute_global_address. proxy_ipv6_address . address
215- target = google_compute_target_tcp_proxy. https_whois_tcp_proxy . self_link
216- port_range = " 443"
217- count = var. public_web_whois
218- }
219-
220- resource "google_compute_global_forwarding_rule" "http_whois_ipv4_forwarding_rule" {
221- name = " http-whois-ipv4-forwarding-rule${ var . suffix } "
222- ip_address = google_compute_global_address. proxy_ipv4_address . address
223- target = google_compute_target_http_proxy. http_whois_http_proxy . self_link
224- port_range = " 80"
225- count = var. public_web_whois
226- }
227-
228- resource "google_compute_global_forwarding_rule" "http_whois_ipv6_forwarding_rule" {
229- name = " http-whois-ipv6-forwarding-rule${ var . suffix } "
230- ip_address = google_compute_global_address. proxy_ipv6_address . address
231- target = google_compute_target_http_proxy. http_whois_http_proxy . self_link
232- port_range = " 80"
233- count = var. public_web_whois
234- }
0 commit comments