Skip to content

Commit 72d8a82

Browse files
authored
fix: Fix regression with aws_cloudwatch_log_group resource after upgrade of AWS provider 3.0 (#106)
1 parent a9f5c31 commit 72d8a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ locals {
2121
sid = "AllowWriteToCloudwatchLogs"
2222
effect = "Allow"
2323
actions = ["logs:CreateLogStream", "logs:PutLogEvents"]
24-
resources = [element(concat(aws_cloudwatch_log_group.lambda[*].arn, list("")), 0)]
24+
resources = [replace("${element(concat(aws_cloudwatch_log_group.lambda[*].arn, list("")), 0)}:*", ":*:*", ":*")]
2525
}
2626

2727
lambda_policy_document_kms = {

0 commit comments

Comments
 (0)