From 06227dc5ee04baad4d76b602b424cc2950e01454 Mon Sep 17 00:00:00 2001 From: Luca Prete Date: Fri, 9 Aug 2024 16:32:52 +0200 Subject: [PATCH] Rename cas variable to cas_configs --- fast/stages/2-security/core-dev.tf | 4 ++-- fast/stages/2-security/core-prod.tf | 4 ++-- fast/stages/2-security/variables.tf | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fast/stages/2-security/core-dev.tf b/fast/stages/2-security/core-dev.tf index 4a50acd621..25235393a5 100644 --- a/fast/stages/2-security/core-dev.tf +++ b/fast/stages/2-security/core-dev.tf @@ -22,7 +22,7 @@ locals { } } dev_ca_pool_config = { - for k, v in var.cas.dev + for k, v in var.cas_configs.dev : k => merge( v.ca_pool_config, ( @@ -73,7 +73,7 @@ module "dev-sec-kms" { } module "dev-sec-cas" { - for_each = var.cas.dev + for_each = var.cas_configs.dev source = "../../../modules/certificate-authority-service" project_id = module.dev-sec-project.project_id ca_configs = each.value.ca_configs diff --git a/fast/stages/2-security/core-prod.tf b/fast/stages/2-security/core-prod.tf index 9e995b2ea4..08f040ef01 100644 --- a/fast/stages/2-security/core-prod.tf +++ b/fast/stages/2-security/core-prod.tf @@ -22,7 +22,7 @@ locals { } } prod_ca_pool_config = { - for k, v in var.cas.prod + for k, v in var.cas_configs.prod : k => merge( v.ca_pool_config, ( @@ -72,7 +72,7 @@ module "prod-sec-kms" { } module "prod-sec-cas" { - for_each = var.cas.prod + for_each = var.cas_configs.prod source = "../../../modules/certificate-authority-service" project_id = module.prod-sec-project.project_id ca_configs = each.value.ca_configs diff --git a/fast/stages/2-security/variables.tf b/fast/stages/2-security/variables.tf index 65b1027829..6762dc0ec8 100644 --- a/fast/stages/2-security/variables.tf +++ b/fast/stages/2-security/variables.tf @@ -14,7 +14,7 @@ * limitations under the License. */ -variable "cas" { +variable "cas_configs" { description = "The CAS CAs to add to each environment" type = object({ dev = map(object({