Skip to content

Commit 53c354b

Browse files
Update AlloyDB TF examples and tests to include the password field on clusters (#15564) (#1149)
[upstream:2e0d3b99d3cec01220a5b758f85f02ff1240065e] Signed-off-by: Modular Magician <[email protected]>
1 parent 6f69629 commit 53c354b

File tree

5 files changed

+20
-0
lines changed
  • alloydb_backup_basic_test
  • alloydb_backup_full_test
  • alloydb_cluster_basic
  • alloydb_secondary_cluster_basic_test
  • alloydb_secondary_instance_basic_test

5 files changed

+20
-0
lines changed

alloydb_backup_basic_test/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ resource "google_alloydb_cluster" "default" {
1313
network = data.google_compute_network.default.id
1414
}
1515

16+
initial_user {
17+
password = "alloydb-cluster-${local.name_suffix}"
18+
}
19+
1620
deletion_protection = false
1721
}
1822

alloydb_backup_full_test/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ resource "google_alloydb_cluster" "default" {
1818
network = data.google_compute_network.default.id
1919
}
2020

21+
initial_user {
22+
password = "alloydb-cluster-${local.name_suffix}"
23+
}
24+
2125
deletion_protection = false
2226
}
2327

alloydb_cluster_basic/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ resource "google_alloydb_cluster" "default" {
55
network = google_compute_network.default.id
66
}
77

8+
initial_user {
9+
password = "alloydb-cluster-${local.name_suffix}"
10+
}
11+
812
deletion_protection = false
913
}
1014

alloydb_secondary_cluster_basic_test/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ resource "google_alloydb_cluster" "primary" {
55
network = data.google_compute_network.default.id
66
}
77

8+
initial_user {
9+
password = "alloydb-primary-cluster-${local.name_suffix}"
10+
}
11+
812
deletion_protection = false
913
}
1014

alloydb_secondary_instance_basic_test/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ resource "google_alloydb_cluster" "primary" {
55
network = data.google_compute_network.default.id
66
}
77

8+
initial_user {
9+
password = "alloydb-primary-cluster-${local.name_suffix}"
10+
}
11+
812
deletion_protection = false
913
}
1014

0 commit comments

Comments
 (0)