-
-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Describe the Bug
While create lambda log forwarder receiving error of malformed policy document.

Expected Behavior
It should not fail.
Some code issue over here. Ideally it should role document
https://github.com/cloudposse/terraform-aws-datadog-lambda-forwarder/blob/373367a1338ac20706ef95c04a7ce173ebcc70e3/main.tf#L52C7-L52C30
Steps to Reproduce
Create log forwarder with following syntax:
module "datadog_lambda_forwarder" {
depends_on = [module.pipe]
source = "cloudposse/datadog-lambda-forwarder/aws"
forwarder_log_enabled = true
api_key_ssm_arn = var.SSM_DATADOG_ARN
enabled = true
cloudwatch_forwarder_log_groups = {
pipe = {
name = module.pipe.aws_log_group_name
filter_pattern = ""
},
}
stage = var.ENVIRONMENT
}
Screenshots
No response
Environment
No response
Additional Context
No response