Allow multiple PSA service providers in net-vpc module (#2218)

* allowing multiple PSA service providers in net-vpc module

* tfdoc

* tfdoc

* Add tfvars/yaml tests

* fix module and tests

* re-enable inventory

* merge fix

* Add multiple PSA test case

* fix cloudsql example

---------

Co-authored-by: Wiktor Niesiobędzki <wiktorn@google.com>
This commit is contained in:
Ludovico Magnocavallo
2024-04-16 17:02:36 +02:00
committed by GitHub
parent b4b926a56e
commit 9414779cc2
43 changed files with 500 additions and 160 deletions

View File

@@ -31,11 +31,11 @@ module "vpc" {
region = var.region
}
]
psa_config = {
psa_configs = [{
ranges = {
cloud-sql = var.ip_ranges.psa
}
}
}]
}
@@ -56,9 +56,9 @@ module "cloudsql" {
project_id = module.project.project_id
network_config = {
connectivity = {
psa_config = {
psa_configs = [{
private_network = module.vpc.self_link
}
}]
}
}
name = "${var.prefix}-mysql"