Fixes for Alloydb E2E tests (#2312)
* Fixes for Alloydb E2E tests * too long project name in Sipmle example resulted in: ``` Error: "***-alloydb-prj" name must be 4 to 30 characters with lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. ``` * using self_link resulted in: ``` Error: Error creating Cluster: googleapi: Error 499: malformed network path: "https://www.googleapis.com/compute/v1/projects/***/global/networks/e2e-test" ``` * Cross region replication stil fails with: ``` │ Error: Error creating cluster. Can not create secondary cluster without secondary_config field. │ │ with module.alloydb.google_alloydb_cluster.secondary[0], │ on /usr/local/google/home/wiktorn/git/cloud-foundation-fabric/modules/alloydb/main.tf line 199, in resource "google_alloydb_cluster" "secondary": │ 199: resource "google_alloydb_cluster" "secondary" { ``` * Fix tests --------- Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
committed by
GitHub
parent
c205a692a3
commit
d1ec3b0499
@@ -29,7 +29,7 @@ module "project" {
|
||||
source = "./fabric/modules/project"
|
||||
billing_account = var.billing_account_id
|
||||
parent = var.folder_id
|
||||
name = "alloydb-prj"
|
||||
name = "alloydb"
|
||||
prefix = var.prefix
|
||||
services = [
|
||||
"servicenetworking.googleapis.com",
|
||||
@@ -76,7 +76,7 @@ module "alloydb" {
|
||||
location = var.region
|
||||
name = "db"
|
||||
network_config = {
|
||||
network = var.vpc.self_link
|
||||
network = var.vpc.id
|
||||
}
|
||||
cross_region_replication = {
|
||||
enabled = true
|
||||
@@ -104,7 +104,7 @@ module "alloydb" {
|
||||
timezone = "'UTC'"
|
||||
}
|
||||
network_config = {
|
||||
network = var.vpc.self_link
|
||||
network = var.vpc.id
|
||||
}
|
||||
users = {
|
||||
# generate a password for user1
|
||||
@@ -130,7 +130,7 @@ module "alloydb" {
|
||||
location = var.region
|
||||
name = "primary"
|
||||
network_config = {
|
||||
network = var.vpc.self_link
|
||||
network = var.vpc.id
|
||||
}
|
||||
encryption_config = {
|
||||
primary_kms_key_name = var.kms_key.id
|
||||
|
||||
Reference in New Issue
Block a user