We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0ff025 commit d8360c4Copy full SHA for d8360c4
logs_monitoring_cloudwatch_log.tf
@@ -9,7 +9,7 @@ resource "aws_cloudwatch_log_subscription_filter" "test_lambdafunction_logfilter
9
10
resource "aws_lambda_permission" "allow_cloudwatch_logs_to_call_dd_lambda_handler" {
11
for_each = { for lg in local.log_groups_to_use : lg => lg }
12
- statement_id = "${substr(replace(each.value, "/", "_"), 0, 67)}-AllowExecutionFromCloudWatchLogs"
+ statement_id = "${substr(replace(replace(each.value, "/aws/lambda", ""), "/", "_"), 0, 67)}-CW"
13
action = "lambda:InvokeFunction"
14
function_name = aws_cloudformation_stack.datadog-forwarder.outputs.DatadogForwarderArn
15
principal = "logs.${var.aws_region}.amazonaws.com"
0 commit comments