@@ -88,7 +88,9 @@ func testAccAlloydbClusterAndInstanceAndBackup(context map[string]interface{}) s
8888resource "google_alloydb_cluster" "source" {
8989 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
9090 location = "us-central1"
91- network = data.google_compute_network.default.id
91+ network_config {
92+ network = data.google_compute_network.default.id
93+ }
9294}
9395
9496resource "google_alloydb_instance" "source" {
@@ -119,7 +121,9 @@ func testAccAlloydbClusterAndInstanceAndBackup_OnlyOneSourceAllowed(context map[
119121resource "google_alloydb_cluster" "source" {
120122 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
121123 location = "us-central1"
122- network = data.google_compute_network.default.id
124+ network_config {
125+ network = data.google_compute_network.default.id
126+ }
123127}
124128
125129resource "google_alloydb_instance" "source" {
@@ -139,7 +143,9 @@ resource "google_alloydb_backup" "default" {
139143resource "google_alloydb_cluster" "restored" {
140144 cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}"
141145 location = "us-central1"
142- network = data.google_compute_network.default.id
146+ network_config {
147+ network = data.google_compute_network.default.id
148+ }
143149 restore_backup_source {
144150 backup_name = google_alloydb_backup.default.name
145151 }
@@ -167,7 +173,9 @@ func testAccAlloydbClusterAndInstanceAndBackup_SourceClusterAndPointInTimeRequir
167173resource "google_alloydb_cluster" "source" {
168174 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
169175 location = "us-central1"
170- network = data.google_compute_network.default.id
176+ network_config {
177+ network = data.google_compute_network.default.id
178+ }
171179}
172180
173181resource "google_alloydb_instance" "source" {
@@ -187,7 +195,9 @@ resource "google_alloydb_backup" "default" {
187195resource "google_alloydb_cluster" "restored" {
188196 cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}"
189197 location = "us-central1"
190- network = data.google_compute_network.default.id
198+ network_config {
199+ network = data.google_compute_network.default.id
200+ }
191201
192202 restore_continuous_backup_source {
193203 cluster = google_alloydb_cluster.source.name
@@ -211,7 +221,9 @@ func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackup(context map[st
211221resource "google_alloydb_cluster" "source" {
212222 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
213223 location = "us-central1"
214- network = data.google_compute_network.default.id
224+ network_config {
225+ network = data.google_compute_network.default.id
226+ }
215227}
216228
217229resource "google_alloydb_instance" "source" {
@@ -231,7 +243,9 @@ resource "google_alloydb_backup" "default" {
231243resource "google_alloydb_cluster" "restored_from_backup" {
232244 cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}"
233245 location = "us-central1"
234- network = data.google_compute_network.default.id
246+ network_config {
247+ network = data.google_compute_network.default.id
248+ }
235249 restore_backup_source {
236250 backup_name = google_alloydb_backup.default.name
237251 }
@@ -256,7 +270,9 @@ func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFrom
256270resource "google_alloydb_cluster" "source" {
257271 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
258272 location = "us-central1"
259- network = data.google_compute_network.default.id
273+ network_config {
274+ network = data.google_compute_network.default.id
275+ }
260276}
261277
262278resource "google_alloydb_instance" "source" {
@@ -276,7 +292,9 @@ resource "google_alloydb_backup" "default" {
276292resource "google_alloydb_cluster" "restored_from_backup" {
277293 cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}"
278294 location = "us-central1"
279- network = data.google_compute_network.default.id
295+ network_config {
296+ network = data.google_compute_network.default.id
297+ }
280298 restore_backup_source {
281299 backup_name = google_alloydb_backup.default.name
282300 }
@@ -289,7 +307,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
289307resource "google_alloydb_cluster" "restored_from_point_in_time" {
290308 cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}"
291309 location = "us-central1"
292- network = data.google_compute_network.default.id
310+ network_config {
311+ network = data.google_compute_network.default.id
312+ }
293313 restore_continuous_backup_source {
294314 cluster = google_alloydb_cluster.source.name
295315 point_in_time = google_alloydb_backup.default.update_time
@@ -315,7 +335,9 @@ func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFrom
315335resource "google_alloydb_cluster" "source" {
316336 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
317337 location = "us-central1"
318- network = data.google_compute_network.default.id
338+ network_config {
339+ network = data.google_compute_network.default.id
340+ }
319341}
320342
321343resource "google_alloydb_instance" "source" {
@@ -335,7 +357,9 @@ resource "google_alloydb_backup" "default" {
335357resource "google_alloydb_cluster" "restored_from_backup" {
336358 cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}"
337359 location = "us-central1"
338- network = data.google_compute_network.default.id
360+ network_config {
361+ network = data.google_compute_network.default.id
362+ }
339363 restore_backup_source {
340364 backup_name = google_alloydb_backup.default.name
341365 }
@@ -353,7 +377,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
353377resource "google_alloydb_cluster" "restored_from_point_in_time" {
354378 cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}"
355379 location = "us-central1"
356- network = data.google_compute_network.default.id
380+ network_config {
381+ network = data.google_compute_network.default.id
382+ }
357383 restore_continuous_backup_source {
358384 cluster = google_alloydb_cluster.source.name
359385 point_in_time = google_alloydb_backup.default.update_time
@@ -384,7 +410,9 @@ func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFrom
384410resource "google_alloydb_cluster" "source" {
385411 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
386412 location = "us-central1"
387- network = data.google_compute_network.default.id
413+ network_config {
414+ network = data.google_compute_network.default.id
415+ }
388416}
389417
390418resource "google_alloydb_instance" "source" {
@@ -412,7 +440,9 @@ resource "google_alloydb_backup" "default2" {
412440resource "google_alloydb_cluster" "restored_from_backup" {
413441 cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}"
414442 location = "us-central1"
415- network = data.google_compute_network.default.id
443+ network_config {
444+ network = data.google_compute_network.default.id
445+ }
416446 restore_backup_source {
417447 backup_name = google_alloydb_backup.default2.name
418448 }
@@ -432,7 +462,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
432462resource "google_alloydb_cluster" "restored_from_point_in_time" {
433463 cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}"
434464 location = "us-central1"
435- network = data.google_compute_network.default.id
465+ network_config {
466+ network = data.google_compute_network.default.id
467+ }
436468 restore_continuous_backup_source {
437469 cluster = google_alloydb_cluster.restored_from_backup.name
438470 point_in_time = google_alloydb_backup.default.update_time
@@ -463,7 +495,9 @@ func testAccAlloydbClusterAndInstanceAndBackup_RestoredFromBackupAndRestoredFrom
463495resource "google_alloydb_cluster" "source" {
464496 cluster_id = "tf-test-alloydb-cluster%{random_suffix}"
465497 location = "us-central1"
466- network = data.google_compute_network.default.id
498+ network_config {
499+ network = data.google_compute_network.default.id
500+ }
467501}
468502
469503resource "google_alloydb_instance" "source" {
@@ -483,7 +517,9 @@ resource "google_alloydb_backup" "default" {
483517resource "google_alloydb_cluster" "restored_from_backup" {
484518 cluster_id = "tf-test-alloydb-backup-restored-cluster-%{random_suffix}"
485519 location = "us-central1"
486- network = data.google_compute_network.default.id
520+ network_config {
521+ network = data.google_compute_network.default.id
522+ }
487523 restore_backup_source {
488524 backup_name = google_alloydb_backup.default.name
489525 }
@@ -492,7 +528,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
492528resource "google_alloydb_cluster" "restored_from_point_in_time" {
493529 cluster_id = "tf-test-alloydb-pitr-restored-cluster-%{random_suffix}"
494530 location = "us-central1"
495- network = data.google_compute_network.default.id
531+ network_config {
532+ network = data.google_compute_network.default.id
533+ }
496534 restore_continuous_backup_source {
497535 cluster = google_alloydb_cluster.source.name
498536 point_in_time = google_alloydb_backup.default.update_time
0 commit comments