From 8d97c9cfa7929dd8e282a91ca19985a6952992df Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Fri, 23 Aug 2024 19:19:13 +0700 Subject: [PATCH] WIP --- infrastructure/modules/efs/mount_targets.tf | 2 +- infrastructure/staging/switch.tf | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/infrastructure/modules/efs/mount_targets.tf b/infrastructure/modules/efs/mount_targets.tf index 690092eda..44041f752 100644 --- a/infrastructure/modules/efs/mount_targets.tf +++ b/infrastructure/modules/efs/mount_targets.tf @@ -1,5 +1,5 @@ locals { - security_group_name = var.security_group_name == null ? var.name : var.security_group_name + security_group_name = var.security_group_name == null ? (var.name == null ? var.file_system.name : var.name) : var.security_group_name } resource "aws_efs_mount_target" "this" { diff --git a/infrastructure/staging/switch.tf b/infrastructure/staging/switch.tf index 993a25a57..4d6088f3e 100644 --- a/infrastructure/staging/switch.tf +++ b/infrastructure/staging/switch.tf @@ -45,7 +45,6 @@ module "switch_helium" { app_environment = var.app_environment json_cdr_url = "https://api-staging.internal.somleng.org/services/call_data_records" subdomain = "switch-staging" - cache_security_group_name = "switch-staging-efs-cache" recordings_bucket = module.switch.recordings_bucket recordings_bucket_access_key_id_parameter = module.switch.recordings_bucket_access_key_id_parameter recordings_bucket_secret_access_key_parameter = module.switch.recordings_bucket_secret_access_key_parameter