Skip to content

Commit de13700

Browse files
Balvinder-1995balvinder
andauthored
fix: Correction with IAM role policy associated with modules/flow-log (#1264)
Co-authored-by: balvinder <[email protected]>
1 parent b3fb14f commit de13700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/flow-log/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ data "aws_iam_policy_document" "this" {
257257
"logs:DescribeLogStreams",
258258
]
259259

260-
resources = local.create_cloudwatch_log_group ? aws_cloudwatch_log_group.this[*].arn : [var.log_destination]
260+
resources = local.create_cloudwatch_log_group ? formatlist("%s:*", aws_cloudwatch_log_group.this[*].arn) : [var.log_destination]
261261
}
262262
}
263263

0 commit comments

Comments
 (0)