@@ -52,12 +52,12 @@ data "google_sql_database_instance" "default" {
5252}
5353
5454resource "google_compute_forwarding_rule" "default" {
55- name = " psc-forwarding-rule-${ google_sql_database_instance . default . name } "
56- region = " us-central1"
57- network = " default"
58- ip_address = google_compute_address. default . self_link
59- load_balancing_scheme = " "
60- target = data. google_sql_database_instance . default . psc_service_attachment_link
55+ name = " psc-forwarding-rule-${ google_sql_database_instance . default . name } "
56+ region = " us-central1"
57+ network = " default"
58+ ip_address = google_compute_address. default . self_link
59+ load_balancing_scheme = " "
60+ target = data. google_sql_database_instance . default . psc_service_attachment_link
6161 allow_psc_global_access = true
6262}
6363# [END cloud_sql_sqlserver_instance_psc_endpoint]
@@ -67,12 +67,12 @@ resource "google_compute_forwarding_rule" "ipv6_ilb_example" {
6767 name = " ipv6-psc-forwarding-rule-${ google_sql_database_instance . default . name } "
6868 region = " us-central1"
6969
70- load_balancing_scheme = " "
71- target = data. google_sql_database_instance . default . psc_service_attachment_link
72- all_ports = true
73- network = " default" # Replace value with the name of the network here.
74- subnetwork = " default" # Replace value with the name of the subnet here.
75- ip_version = " IPV6"
70+ load_balancing_scheme = " "
71+ target = data. google_sql_database_instance . default . psc_service_attachment_link
72+ all_ports = true
73+ network = " default" # Replace value with the name of the network here.
74+ subnetwork = " default" # Replace value with the name of the subnet here.
75+ ip_version = " IPV6"
7676 allow_psc_global_access = true
7777}
78- # [END cloud_sql_sqlserver_instance_ipv6_psc_endpoint]
78+ # [END cloud_sql_sqlserver_instance_ipv6_psc_endpoint]
0 commit comments