InvalidParameterException: destinationArn for vendor lambda cannot be used with

Hello Support,

I am trying to create a aws_cloudwatch_log_subscription_filter for lambda using below code but it’s throwing below error. Any guidance to resolve this issue?

resource “aws_cloudwatch_log_subscription_filter” “csv2ybdbEvntLog2Splunk” {
name = “csv2ybdbEvntLog2Splunk”
#depends_on = aws_lambda_permission.logfilter9
role_arn = “arn:aws:iam::111111111111111:role/iam_role_for_lambda_csv2ybdbEventLog2Splunk-03eb9d83dd65a80f”
log_group_name = “/aws/lambda/csv2ybdb_cdscalculationevent-7ae8821874737d59”
filter_pattern = “”
destination_arn = “arn:aws:lambda:us-east-1:111111111111111:function:csv2ybdbEventLog2Splunk-03eb9d83dd65a80f”
}

aws_cloudwatch_log_subscription_filter.csv2ybdbEvntLog2Splunk: Creating…

Error: Error creating Cloudwatch log subscription filter: InvalidParameterException: destinationArn for vendor lambda cannot be used with roleArn