Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ No outputs.
- resource.aws_efs_file_system.main (main.tf#1)
- resource.aws_efs_file_system_policy.main (main.tf#44)
- resource.aws_efs_mount_target.main (main.tf#37)
- resource.random_uuid.main (main.tf#53)
- resource.random_uuid.main (main.tf#52)
- data source.aws_caller_identity.current (data.tf#1)
- data source.aws_iam_policy_document.main (data.tf#3)

Expand Down
5 changes: 2 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ resource "aws_efs_file_system" "main" {
}

resource "aws_efs_mount_target" "main" {
for_each = toset(var.private_subnets)
count = length(var.private_subnets)
file_system_id = aws_efs_file_system.main.id
security_groups = var.security_groups
subnet_id = each.value
subnet_id = var.private_subnets[count.index]
}

resource "aws_efs_file_system_policy" "main" {
file_system_id = aws_efs_file_system.main.id


bypass_policy_lockout_safety_check = var.bypass_policy_lockout_safety_check

policy = data.aws_iam_policy_document.main.json
Expand Down