Skip to content

Commit

Permalink
fix(log): grant lambda scheduler to write log
Browse files Browse the repository at this point in the history
Lambda was no longer working when it try to
write log in aws log-group, doesn't know why.

This commit allow lambda scheduler to create
log streams in its own Cloudwatch log-group.
  • Loading branch information
diodonfrost committed Mar 1, 2021
1 parent 2712a7a commit 197387a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ locals {
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource" : aws_cloudwatch_log_group.this.arn,
"Resource" : "${aws_cloudwatch_log_group.this.arn}:*",
"Effect" : "Allow"
}
]
Expand All @@ -268,7 +268,7 @@ locals {
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource" : aws_cloudwatch_log_group.this.arn,
"Resource" : "${aws_cloudwatch_log_group.this.arn}:*",
"Effect" : "Allow"
},
{
Expand Down

0 comments on commit 197387a

Please sign in to comment.