Skip to content

Getting Malformed PolicyΒ #89

@jappurohit041

Description

@jappurohit041

Describe the Bug

While create lambda log forwarder receiving error of malformed policy document.
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugπŸ› An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions