From 9035fea2985ccbf49b03941a1c5b8cc4d31b1fbd Mon Sep 17 00:00:00 2001 From: Daniel Bernstein Date: Thu, 7 Sep 2023 15:01:04 -0700 Subject: [PATCH] Add efs mount targets for subnets c and d. --- mill/main.tf | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mill/main.tf b/mill/main.tf index acaeab3..3ef7f66 100644 --- a/mill/main.tf +++ b/mill/main.tf @@ -4,8 +4,6 @@ module "common_parameters" { source = "../modules/common_parameters" } - - resource "aws_efs_file_system" "duracloud_mill" { tags = { Name = "${var.stack_name}-efs" @@ -24,6 +22,17 @@ resource "aws_efs_mount_target" "mount_target_b" { security_groups = [aws_security_group.efs_sg.id] } +resource "aws_efs_mount_target" "mount_target_c" { + file_system_id = aws_efs_file_system.duracloud_mill.id + subnet_id = data.aws_subnet.duracloud_c.id + security_groups = [aws_security_group.efs_sg.id] +} + +resource "aws_efs_mount_target" "mount_target_d" { + file_system_id = aws_efs_file_system.duracloud_mill.id + subnet_id = data.aws_subnet.duracloud_d.id + security_groups = [aws_security_group.efs_sg.id] +} resource "aws_security_group" "efs_sg" { name = "efs_sg"