diff --git a/google/services/alloydb/resource_alloydb_cluster_generated_test.go b/google/services/alloydb/resource_alloydb_cluster_generated_test.go index 58848334519..1e553ed49c9 100644 --- a/google/services/alloydb/resource_alloydb_cluster_generated_test.go +++ b/google/services/alloydb/resource_alloydb_cluster_generated_test.go @@ -60,7 +60,9 @@ func testAccAlloydbCluster_alloydbClusterBasicExample(context map[string]interfa resource "google_alloydb_cluster" "default" { cluster_id = "tf-test-alloydb-cluster%{random_suffix}" location = "us-central1" - network = google_compute_network.default.id + network_config { + network = google_compute_network.default.id + } } data "google_project" "project" {} @@ -99,9 +101,11 @@ func TestAccAlloydbCluster_alloydbClusterFullExample(t *testing.T) { func testAccAlloydbCluster_alloydbClusterFullExample(context map[string]interface{}) string { return acctest.Nprintf(` resource "google_alloydb_cluster" "full" { - cluster_id = "tf-test-alloydb-cluster-full%{random_suffix}" - location = "us-central1" - network = google_compute_network.default.id + cluster_id = "tf-test-alloydb-cluster-full%{random_suffix}" + location = "us-central1" + network_config { + network = google_compute_network.default.id + } database_version = "POSTGRES_15" initial_user { diff --git a/website/docs/r/alloydb_backup.html.markdown b/website/docs/r/alloydb_backup.html.markdown index d2a600fadec..402e3631472 100644 --- a/website/docs/r/alloydb_backup.html.markdown +++ b/website/docs/r/alloydb_backup.html.markdown @@ -43,7 +43,9 @@ resource "google_alloydb_backup" "default" { resource "google_alloydb_cluster" "default" { cluster_id = "alloydb-cluster" location = "us-central1" - network = google_compute_network.default.id + network_config { + network = google_compute_network.default.id + } } resource "google_alloydb_instance" "default" { @@ -92,7 +94,9 @@ resource "google_alloydb_backup" "default" { resource "google_alloydb_cluster" "default" { cluster_id = "alloydb-cluster" location = "us-central1" - network = google_compute_network.default.id + network_config { + network = google_compute_network.default.id + } } resource "google_alloydb_instance" "default" { diff --git a/website/docs/r/alloydb_cluster.html.markdown b/website/docs/r/alloydb_cluster.html.markdown index 20fae81f203..036cb4a9d26 100644 --- a/website/docs/r/alloydb_cluster.html.markdown +++ b/website/docs/r/alloydb_cluster.html.markdown @@ -48,7 +48,9 @@ values will be stored in the raw state as plain text: `initial_user.password`. resource "google_alloydb_cluster" "default" { cluster_id = "alloydb-cluster" location = "us-central1" - network = google_compute_network.default.id + network_config { + network = google_compute_network.default.id + } } data "google_project" "project" {} @@ -67,9 +69,11 @@ resource "google_compute_network" "default" { ```hcl resource "google_alloydb_cluster" "full" { - cluster_id = "alloydb-cluster-full" - location = "us-central1" - network = google_compute_network.default.id + cluster_id = "alloydb-cluster-full" + location = "us-central1" + network_config { + network = google_compute_network.default.id + } database_version = "POSTGRES_15" initial_user { @@ -155,7 +159,9 @@ resource "google_alloydb_backup" "source" { resource "google_alloydb_cluster" "restored_from_backup" { cluster_id = "alloydb-backup-restored" location = "us-central1" - network = data.google_compute_network.default.id + network_config { + network = data.google_compute_network.default.id + } restore_backup_source { backup_name = google_alloydb_backup.source.name } diff --git a/website/docs/r/alloydb_instance.html.markdown b/website/docs/r/alloydb_instance.html.markdown index d3414fab040..a4936fdb27a 100644 --- a/website/docs/r/alloydb_instance.html.markdown +++ b/website/docs/r/alloydb_instance.html.markdown @@ -51,7 +51,9 @@ resource "google_alloydb_instance" "default" { resource "google_alloydb_cluster" "default" { cluster_id = "alloydb-cluster" location = "us-central1" - network = google_compute_network.default.id + network_config { + network = google_compute_network.default.id + } initial_user { password = "alloydb-cluster"