Skip to content

Commit

Permalink
Rename cas variable to cas_configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Prete committed Aug 9, 2024
1 parent 3d35e70 commit 06227dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fast/stages/2-security/core-dev.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
(
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions fast/stages/2-security/core-prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
(
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fast/stages/2-security/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 06227dc

Please sign in to comment.