File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ No outputs.
7373- resource.aws_efs_file_system.main (main.tf#1)
7474- resource.aws_efs_file_system_policy.main (main.tf#44)
7575- resource.aws_efs_mount_target.main (main.tf#37)
76- - resource.random_uuid.main (main.tf#53 )
76+ - resource.random_uuid.main (main.tf#52 )
7777- data source.aws_caller_identity.current (data.tf#1)
7878- data source.aws_iam_policy_document.main (data.tf#3)
7979
Original file line number Diff line number Diff line change @@ -35,16 +35,15 @@ resource "aws_efs_file_system" "main" {
3535}
3636
3737resource "aws_efs_mount_target" "main" {
38- for_each = toset (var. private_subnets )
38+ count = length (var. private_subnets )
3939 file_system_id = aws_efs_file_system. main . id
4040 security_groups = var. security_groups
41- subnet_id = each . value
41+ subnet_id = var . private_subnets [ count . index ]
4242}
4343
4444resource "aws_efs_file_system_policy" "main" {
4545 file_system_id = aws_efs_file_system. main . id
4646
47-
4847 bypass_policy_lockout_safety_check = var. bypass_policy_lockout_safety_check
4948
5049 policy = data. aws_iam_policy_document . main . json
You can’t perform that action at this time.
0 commit comments