Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelhar committed Feb 21, 2025
1 parent 4fa1cff commit b0ad2bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module "network" {
region = var.region
node_groups = local.node_groups
network = var.network
flow_log_bucket_arn = local.create_s3 ? { arn = module.storage[0].info.s3.buckets.monitoring.arn } : null
flow_log_bucket_arn = local.create_s3 ? { arn = module.storage.info.s3.buckets.monitoring.arn } : null
}

module "vpn" {
Expand Down Expand Up @@ -110,7 +110,7 @@ module "bastion" {
locals {
cost_usage_report_info = var.domino_cur.provision_cost_usage_report && length(module.cost_usage_report) > 0 ? module.cost_usage_report[0].info : null
bastion_info = var.bastion.enabled && length(module.bastion) > 0 ? module.bastion[0].info : null
add_s3_pol = local.create_s3 ? [module.storage[0].info.s3.iam_policy_arn] : []
add_ecr_pol = local.create_ecr ? concat([module.storage[0].info.ecr.iam_policy_arn], local.add_s3_pol) : local.add_s3_pol
add_s3_pol = local.create_s3 ? [module.storage.info.s3.iam_policy_arn] : []
add_ecr_pol = local.create_ecr ? concat([module.storage.info.ecr.iam_policy_arn], local.add_s3_pol) : local.add_s3_pol
node_iam_policies = local.cost_usage_report_info != null ? concat(local.add_ecr_pol, [local.cost_usage_report_info.cur_iam_policy_arn]) : local.add_ecr_pol
}
4 changes: 2 additions & 2 deletions modules/infra/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ output "bastion" {

output "storage" {
description = "Storage details."
value = var.storage != null ? module.storage[0].info : null
value = var.storage != null ? module.storage.info : null
}

output "tags" {
Expand Down Expand Up @@ -75,7 +75,7 @@ output "create_eks_role_arn" {

output "monitoring_bucket" {
description = "Monitoring Bucket"
value = var.storage != null ? (var.storage.s3.create ? module.storage[0].info.s3.buckets.monitoring.bucket_name : null) : null
value = var.storage != null ? (var.storage.s3.create ? module.storage.info.s3.buckets.monitoring.bucket_name : null) : null
}

output "cost_usage_report" {
Expand Down

0 comments on commit b0ad2bc

Please sign in to comment.