Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
locals {
workloads = {
team-a = {
projects = {
qa-a-1 = {
auto_create_network = true
services = [
"sql-component.googleapis.com",
]
}
}
}
team-b = {
projects = {
qa-b-1 = {
auto_create_network = false
services = [
"sql-component.googleapis.com",
]
}
dev-b-1 = {
services = [
"sql-component.googleapis.com",
"pubsub.googleapis.com",
]
}
}
}
team-c = {
projects = {
prod-c-1 = {}
}
}
}
}
module "cloudlad_org" {
source = "../modules/resource_management"
for_each = local.workloads
billing_account = var.billing_account
folder_parent = var.folder_parent
folder_name = each.key
projects = lookup(each.value, "projects", null)
depends_on = [module.cloudlad_org_security]
}
locals {
security = {
team-x = {
projects = {
sec-check = {
auto_create_network = false
}
}
}
}
}
module "cloudlad_org_security" {
source = "../modules/resource_management"
for_each = local.security
billing_account = var.billing_account
folder_parent = var.folder_parent
folder_name = each.key
projects = lookup(each.value, "projects", null)
}