From 03e4c08874d524388c5ed44521ec5c8f9338038c Mon Sep 17 00:00:00 2001 From: Wessel van Heerde Date: Fri, 29 Nov 2024 20:04:13 +0100 Subject: [PATCH] fix: use correct resource arn for FSx file systems --- iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam.tf b/iam.tf index 6c9c532..0ad29bc 100644 --- a/iam.tf +++ b/iam.tf @@ -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" ] }