Skip to content

Commit bc4eef2

Browse files
committed
avoid use auto-subnet ip as static ip
1 parent 8bf11fe commit bc4eef2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cloud_sql/mysql_instance_psa_psc/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ resource "google_compute_address" "default" {
7373
region = "us-central1"
7474
address_type = "INTERNAL"
7575
subnetwork = "default" # Replace value with the name of the subnet here.
76-
address = "10.128.0.43" # Replace value with the IP address to reserve.
76+
address = "192.168.0.43" # Replace value with the IP address to reserve.
7777
}
7878

7979
data "google_sql_database_instance" "default" {

cloud_sql/postgres_instance_psa_psc/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ resource "google_compute_address" "default" {
7777
region = "us-central1"
7878
address_type = "INTERNAL"
7979
subnetwork = "default" # Replace value with the name of the subnet here.
80-
address = "10.128.0.42" # Replace value with the IP address to reserve.
80+
address = "192.168.0.42" # Replace value with the IP address to reserve.
8181
}
8282

8383
data "google_sql_database_instance" "default" {

cloud_sql/sqlserver_instance_psa_psc/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resource "google_compute_address" "default" {
7474
region = "us-central1"
7575
address_type = "INTERNAL"
7676
subnetwork = "default" # Replace value with the name of the subnet here.
77-
address = "10.128.0.44" # Replace value with the IP address to reserve.
77+
address = "192.168.0.44" # Replace value with the IP address to reserve.
7878
}
7979

8080
data "google_sql_database_instance" "default" {

0 commit comments

Comments
 (0)