The terraform resource only provides an HTTP Endpoint method for kinesis_firehose_delivery_stream:
Use this method created on AWS
But the target log_group’s data didn’t been sent to New Relic after several minutes.
resource "aws_cloudwatch_log_subscription_filter" "test_logfilter" {
name = "test_logfilter"
role_arn = aws_iam_role.iam_for_test.arn
log_group_name = "/aws/ec2/example_name"
filter_pattern = "logtype test"
destination_arn = (The created delivery stream arn above)
distribution = "Random"
}
From the New Relic’s document, it should choose Third-party partner
but not HTTP Endpoint
The addition configuration
I also tried to send test data on the created Kinesis Data Firehose delivery streams, but it didn’t response anything so I should stop sending the data.
It seems the connection between AWS and New Relic doesn’t work. Can terraform do a newrelic_configuration
? Is it really that the HTTP Endpoint
doesn’t work?