Skip to content

Commit fc4e2b3

Browse files
authored
Copy networking samples (terraform-google-modules#360)
* move health-check-region to lb/health_check_region * temporary copy of health-check-region * merge original copy of health-check-region * move health-check-tcp to lb/health_check_tcp * temporary copy of health-check-tcp * merge original copy of health-check-tcp * move firewall_with_target_tags to vpc/firewall_with_target_tags * temporary copy of firewall_with_target_tags * merge original copy of firewall_with_target_tags * move ha_vpn_gateway_gcp_to_gcp to vpn/ha_vpn_gateway_gcp_to_gcp * temporary copy of ha_vpn_gateway_gcp_to_gcp * merge original copy of ha_vpn_gateway_gcp_to_gcp * move network_custom_mtu to vpn/network_custom_mtu * temporary copy of network_custom_mtu * merge original copy of network_custom_mtu * move external_vpn_gateway to vpn/external_vpn_gateway * temporary copy of external_vpn_gateway * merge original copy of external_vpn_gateway * move ha_vpn_over_interconnect_10GB_attach to network_connectivity/interconnect/ha_vpn_over_interconnect_10GB_attach * temporary copy of ha_vpn_over_interconnect_10GB_attach * merge original copy of ha_vpn_over_interconnect_10GB_attach * move ha_vpn_over_interconnect_5GB_attach to network_connectivity/interconnect/ha_vpn_over_interconnect_5GB_attach * temporary copy of ha_vpn_over_interconnect_5GB_attach * merge original copy of ha_vpn_over_interconnect_5GB_attach * move network_management_connectivity_test_addresses to network_connectivity/network_connectivity_center/network_management_connectivity_test_addresses * temporary copy of network_management_connectivity_test_addresses * merge original copy of network_management_connectivity_test_addresses * move network_management_connectivity_test_instances to network_connectivity/network_connectivity_center/network_management_connectivity_test_instances * temporary copy of network_management_connectivity_test_instances * merge original copy of network_management_connectivity_test_instances * move url_map_header_based_routing to traffic_director/url_map_header_based_routing * temporary copy of url_map_header_based_routing * merge original copy of url_map_header_based_routing * move url_map_parameter_based_routing to traffic_director/url_map_parameter_based_routing * temporary copy of url_map_parameter_based_routing * merge original copy of url_map_parameter_based_routing * move url_map_traffic_director_path to traffic_director/url_map_traffic_director_path * temporary copy of url_map_traffic_director_path * merge original copy of url_map_traffic_director_path * move url_map_traffic_director_path_partial to traffic_director/url_map_traffic_director_path_partial * temporary copy of url_map_traffic_director_path_partial * merge original copy of url_map_traffic_director_path_partial * move url_map_traffic_director_route to traffic_director/url_map_traffic_director_route * temporary copy of url_map_traffic_director_route * merge original copy of url_map_traffic_director_route * move url_map_traffic_director_route_partial to traffic_director/url_map_traffic_director_route_partial * temporary copy of url_map_traffic_director_route_partial * merge original copy of url_map_traffic_director_route_partial * move private_service_connect_google_apis to vpc/private_service_connect/private_service_connect_google_apis * temporary copy of private_service_connect_google_apis * merge original copy of private_service_connect_google_apis * move privateca_capool_all_fields to privateca/capool_all_fields * temporary copy of privateca_capool_all_fields * merge original copy of privateca_capool_all_fields * move privateca_capool_basic to privateca/capool_basic * temporary copy of privateca_capool_basic * merge original copy of privateca_capool_basic * move privateca_certificate_authority_basic to privateca/certificate_authority_basic * temporary copy of privateca_certificate_authority_basic * merge original copy of privateca_certificate_authority_basic * move privateca_certificate_authority_byo_key to privateca/certificate_authority_byo_key * temporary copy of privateca_certificate_authority_byo_key * merge original copy of privateca_certificate_authority_byo_key * move privateca_certificate_authority_subordinate to privateca/certificate_authority_subordinate * temporary copy of privateca_certificate_authority_subordinate * merge original copy of privateca_certificate_authority_subordinate * move privateca_certificate_config to privateca/certificate_config * temporary copy of privateca_certificate_config * merge original copy of privateca_certificate_config * move privateca_certificate_csr to privateca/certificate_csr * temporary copy of privateca_certificate_csr * merge original copy of privateca_certificate_csr * move privateca_certificate_no_authority to privateca/certificate_no_authority * temporary copy of privateca_certificate_no_authority * merge original copy of privateca_certificate_no_authority * move privateca_certificate_with_template to privateca/certificate_with_template * temporary copy of privateca_certificate_with_template * merge original copy of privateca_certificate_with_template * move privateca_quickstart to privateca/quickstart * temporary copy of privateca_quickstart * merge original copy of privateca_quickstart
1 parent 0bf13d0 commit fc4e2b3

File tree

32 files changed

+3071
-0
lines changed

32 files changed

+3071
-0
lines changed

lb/health_check_region/main.tf

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
# [START cloudloadbalancing_regional_health_check]
18+
resource "google_compute_region_health_check" "default" {
19+
name = "tcp-health-check-region-west"
20+
timeout_sec = 5
21+
check_interval_sec = 5
22+
tcp_health_check {
23+
port = "80"
24+
}
25+
region = "us-west1"
26+
}
27+
# [END cloudloadbalancing_regional_health_check]

lb/health_check_tcp/main.tf

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
# [START cloudloadbalancing_health_check_tcp_with_logging]
18+
resource "google_compute_health_check" "health_check_tcp_with_logging" {
19+
provider = google-beta
20+
21+
name = "health-check-tcp"
22+
23+
timeout_sec = 1
24+
check_interval_sec = 1
25+
26+
tcp_health_check {
27+
port = "22"
28+
}
29+
30+
log_config {
31+
enable = true
32+
}
33+
}
34+
# [END cloudloadbalancing_health_check_tcp_with_logging]

0 commit comments

Comments
 (0)