Skip to content

Commit

Permalink
Add efs mount targets for subnets c and d.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Sep 7, 2023
1 parent 6ee1a59 commit 9035fea
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions mill/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module "common_parameters" {
source = "../modules/common_parameters"
}



resource "aws_efs_file_system" "duracloud_mill" {
tags = {
Name = "${var.stack_name}-efs"
Expand All @@ -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"
Expand Down

0 comments on commit 9035fea

Please sign in to comment.