Skip to content

Commit 055fc06

Browse files
committed
fix: fail to deploy on default vpc
1 parent 5768e3c commit 055fc06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ resource "google_sql_database_instance" "primary" {
122122
}
123123

124124
deletion_protection = false
125+
126+
depends_on = [google_service_networking_connection.default]
125127
}
126128

127129
resource "google_sql_database_instance" "secondary" {
@@ -144,6 +146,8 @@ resource "google_sql_database_instance" "secondary" {
144146
}
145147

146148
deletion_protection = false
149+
150+
depends_on = [google_service_networking_connection.default]
147151
}
148152

149153
# create database.

0 commit comments

Comments
 (0)