Add descriptive name as optional argument

This commit is contained in:
Paul Woelfel 2023-02-06 17:35:11 +01:00
parent feffdf10b5
commit f2b61b1e31
No known key found for this signature in database
GPG Key ID: 2BB3A36C6AABC94D
2 changed files with 7 additions and 0 deletions

View File

@ -180,6 +180,7 @@ module "project" {
source = "../../../modules/project"
billing_account = local.billing_account_id
name = var.project_id
descriptive_name = var.descriptive_name
prefix = var.prefix
contacts = { for c in local.essential_contacts : c => ["ALL"] }
iam = local.iam

View File

@ -162,6 +162,12 @@ variable "project_id" {
type = string
}
variable "descriptive_name" {
description = "Name of the project name. Used for project name instead of `name` variable."
type = string
default = null
}
variable "service_accounts" {
description = "Service accounts to be created, and roles assigned them on the project."
type = map(list(string))