Skip to content

Commit

Permalink
fix(DMVP-cloudwatch-to-lambda): Cloudwatch to lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Aghamyan committed Nov 17, 2023
1 parent d2a23d2 commit 56e1072
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/cloudwatch-to-lambda/subscription.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ resource "aws_cloudwatch_log_subscription_filter" "subscription_filter" {
resource "aws_lambda_permission" "cloudwatch_permission_to_trigger_lambda" {
for_each = { for log_name in var.cloudwatch_log_group_names : log_name => log_name }

# statement_id = "AllowExecutionFromCloudWatch${each.value}"
action = "lambda:InvokeFunction"
function_name = module.lambda.lambda_function_arn
principal = "logs.${data.aws_region.current.name}.amazonaws.com"
Expand Down

0 comments on commit 56e1072

Please sign in to comment.