@@ -106,6 +106,10 @@ resource "google_alloydb_cluster" "source" {
106106 network = data.google_compute_network.default.id
107107 }
108108
109+ initial_user {
110+ password = "tf_test_cluster_secret%{random_suffix}"
111+ }
112+
109113 deletion_protection = false
110114}
111115
@@ -141,6 +145,10 @@ resource "google_alloydb_cluster" "source" {
141145 network = data.google_compute_network.default.id
142146 }
143147
148+ initial_user {
149+ password = "tf_test_cluster_secret%{random_suffix}"
150+ }
151+
144152 deletion_protection = false
145153}
146154
@@ -164,6 +172,9 @@ resource "google_alloydb_cluster" "restored" {
164172 network_config {
165173 network = data.google_compute_network.default.id
166174 }
175+ initial_user {
176+ password = "tf_test_cluster_secret%{random_suffix}"
177+ }
167178 restore_backup_source {
168179 backup_name = google_alloydb_backup.default.name
169180 }
@@ -197,6 +208,10 @@ resource "google_alloydb_cluster" "source" {
197208 network = data.google_compute_network.default.id
198209 }
199210
211+ initial_user {
212+ password = "tf_test_cluster_secret%{random_suffix}"
213+ }
214+
200215 deletion_protection = false
201216}
202217
@@ -221,6 +236,10 @@ resource "google_alloydb_cluster" "restored" {
221236 network = data.google_compute_network.default.id
222237 }
223238
239+ initial_user {
240+ password = "tf_test_cluster_secret%{random_suffix}"
241+ }
242+
224243 restore_continuous_backup_source {
225244 cluster = google_alloydb_cluster.source.name
226245 }
@@ -249,6 +268,10 @@ resource "google_alloydb_cluster" "source" {
249268 network = data.google_compute_network.default.id
250269 }
251270
271+ initial_user {
272+ password = "tf_test_cluster_secret%{random_suffix}"
273+ }
274+
252275 deletion_protection = false
253276}
254277
@@ -272,6 +295,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
272295 network_config {
273296 network = data.google_compute_network.default.id
274297 }
298+ initial_user {
299+ password = "tf_test_cluster_secret%{random_suffix}"
300+ }
275301 restore_backup_source {
276302 backup_name = google_alloydb_backup.default.name
277303 }
@@ -302,6 +328,10 @@ resource "google_alloydb_cluster" "source" {
302328 network = data.google_compute_network.default.id
303329 }
304330
331+ initial_user {
332+ password = "tf_test_cluster_secret%{random_suffix}"
333+ }
334+
305335 deletion_protection = false
306336}
307337
@@ -325,6 +355,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
325355 network_config {
326356 network = data.google_compute_network.default.id
327357 }
358+ initial_user {
359+ password = "tf_test_cluster_secret%{random_suffix}"
360+ }
328361 restore_backup_source {
329362 backup_name = google_alloydb_backup.default.name
330363 }
@@ -342,6 +375,9 @@ resource "google_alloydb_cluster" "restored_from_point_in_time" {
342375 network_config {
343376 network = data.google_compute_network.default.id
344377 }
378+ initial_user {
379+ password = "tf_test_cluster_secret%{random_suffix}"
380+ }
345381 restore_continuous_backup_source {
346382 cluster = google_alloydb_cluster.source.name
347383 point_in_time = google_alloydb_backup.default.update_time
@@ -373,6 +409,10 @@ resource "google_alloydb_cluster" "source" {
373409 network = data.google_compute_network.default.id
374410 }
375411
412+ initial_user {
413+ password = "tf_test_cluster_secret%{random_suffix}"
414+ }
415+
376416 deletion_protection = false
377417}
378418
@@ -396,6 +436,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
396436 network_config {
397437 network = data.google_compute_network.default.id
398438 }
439+ initial_user {
440+ password = "tf_test_cluster_secret%{random_suffix}"
441+ }
399442 restore_backup_source {
400443 backup_name = google_alloydb_backup.default.name
401444 }
@@ -418,6 +461,9 @@ resource "google_alloydb_cluster" "restored_from_point_in_time" {
418461 network_config {
419462 network = data.google_compute_network.default.id
420463 }
464+ initial_user {
465+ password = "tf_test_cluster_secret%{random_suffix}"
466+ }
421467 restore_continuous_backup_source {
422468 cluster = google_alloydb_cluster.source.name
423469 point_in_time = google_alloydb_backup.default.update_time
@@ -453,6 +499,9 @@ resource "google_alloydb_cluster" "source" {
453499 network_config {
454500 network = data.google_compute_network.default.id
455501 }
502+ initial_user {
503+ password = "tf_test_cluster_secret%{random_suffix}"
504+ }
456505
457506 deletion_protection = false
458507}
@@ -485,6 +534,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
485534 network_config {
486535 network = data.google_compute_network.default.id
487536 }
537+ initial_user {
538+ password = "tf_test_cluster_secret%{random_suffix}"
539+ }
488540 restore_backup_source {
489541 backup_name = google_alloydb_backup.default2.name
490542 }
@@ -509,6 +561,9 @@ resource "google_alloydb_cluster" "restored_from_point_in_time" {
509561 network_config {
510562 network = data.google_compute_network.default.id
511563 }
564+ initial_user {
565+ password = "tf_test_cluster_secret%{random_suffix}"
566+ }
512567 restore_continuous_backup_source {
513568 cluster = google_alloydb_cluster.restored_from_backup.name
514569 point_in_time = google_alloydb_backup.default.update_time
@@ -544,6 +599,9 @@ resource "google_alloydb_cluster" "source" {
544599 network_config {
545600 network = data.google_compute_network.default.id
546601 }
602+ initial_user {
603+ password = "tf_test_cluster_secret%{random_suffix}"
604+ }
547605
548606 deletion_protection = false
549607}
@@ -568,6 +626,9 @@ resource "google_alloydb_cluster" "restored_from_backup" {
568626 network_config {
569627 network = data.google_compute_network.default.id
570628 }
629+ initial_user {
630+ password = "tf_test_cluster_secret%{random_suffix}"
631+ }
571632 restore_backup_source {
572633 backup_name = google_alloydb_backup.default.name
573634 }
@@ -581,6 +642,9 @@ resource "google_alloydb_cluster" "restored_from_point_in_time" {
581642 network_config {
582643 network = data.google_compute_network.default.id
583644 }
645+ initial_user {
646+ password = "tf_test_cluster_secret%{random_suffix}"
647+ }
584648 restore_continuous_backup_source {
585649 cluster = google_alloydb_cluster.source.name
586650 point_in_time = google_alloydb_backup.default.update_time
0 commit comments