From f2b61b1e31aee4a9cbb09b490aa8a04ffd0dbbe7 Mon Sep 17 00:00:00 2001 From: Paul Woelfel Date: Mon, 6 Feb 2023 17:35:11 +0100 Subject: [PATCH] Add descriptive name as optional argument --- blueprints/factories/project-factory/main.tf | 1 + blueprints/factories/project-factory/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/blueprints/factories/project-factory/main.tf b/blueprints/factories/project-factory/main.tf index f6b2a797..518d5a69 100644 --- a/blueprints/factories/project-factory/main.tf +++ b/blueprints/factories/project-factory/main.tf @@ -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 diff --git a/blueprints/factories/project-factory/variables.tf b/blueprints/factories/project-factory/variables.tf index 0ece0f04..6475e246 100644 --- a/blueprints/factories/project-factory/variables.tf +++ b/blueprints/factories/project-factory/variables.tf @@ -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))