Skip to content

Commit

Permalink
Merge pull request #7 from schubergphilis/repair-fsx-iam-policy
Browse files Browse the repository at this point in the history
fix: use correct resource arn for FSx file systems
  • Loading branch information
wvanheerde authored Nov 29, 2024
2 parents 0ac9843 + 03e4c08 commit 10bdf18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ data "aws_iam_policy_document" "lambda_policy" {
]
resources = [
for resource in var.resource_composition :
"arn:aws:fsx:${data.aws_region.current.name}:${data.aws_caller_identity.current.id}:db:${resource.params["id"]}"
"arn:aws:fsx:${data.aws_region.current.name}:${data.aws_caller_identity.current.id}:file-system/${resource.params["id"]}"
if resource.type == "fsx_windows_file_system"
]
}
Expand Down

0 comments on commit 10bdf18

Please sign in to comment.