Skip to content

Commit d3fb30a

Browse files
Use new VPC networks in private connection tests (#11175) (#751)
[upstream:9da4e3ec45d10f9f585812c3722f241c182db087] Signed-off-by: Modular Magician <[email protected]>
1 parent 9005920 commit d3fb30a

File tree

1 file changed

+3
-2
lines changed
  • database_migration_service_private_connection

1 file changed

+3
-2
lines changed

database_migration_service_private_connection/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ resource "google_database_migration_service_private_connection" "default" {
88
}
99

1010
vpc_peering_config {
11-
vpc_name = data.google_compute_network.default.id
11+
vpc_name = resource.google_compute_network.default.id
1212
subnet = "10.0.0.0/29"
1313
}
1414
}
1515

16-
data "google_compute_network" "default" {
16+
resource "google_compute_network" "default" {
1717
name = "my-network-${local.name_suffix}"
18+
auto_create_subnetworks = false
1819
}

0 commit comments

Comments
 (0)