79424944

Date: 2025-02-09 13:21:25
Score: 4
Natty:
Report link
resource "aws_cloudwatch_log_subscription_filter" "lambda_error_filter" {
  name            = "LambdaErrorLogFilter"
  log_group_name  = "${var.lambda_job}"
  filter_pattern  = "?ERROR ?Error ?Exception"
  

destination_arn = aws_lambda_function.sns_email_lambda.arn
}

created with following resource of cloudwatch log subscription filter but getting below error can you please guide me to resolve this error

putting CloudWatch Logs Subscription Filter (uat-dps-unify-pipeline-lambda-error-logfilter): operation error CloudWatch Logs: PutSubscriptionFilter, https response error StatusCode: 400, RequestID: ef62c984-7789-47e4-8af8-56aae46def30, InvalidParameterException: Could not execute the lambda function. Make sure you have given CloudWatch Logs permission to execute your function.

Reasons:
  • Blacklisted phrase (1): guide me
  • RegEx Blacklisted phrase (2.5): can you please guide me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: raghu