FEATURES PRICING ABOUT DOCS LOGIN

aws_cloudwatch_logs_subscription_filter

Provides a CloudWatch Logs subscription filter resource.

Example Usage

resource "aws_cloudwatch_log_subscription_filter" "test_lambdafunction_logfilter" {
  name = "test_lambdafunction_logfilter"
  role_arn = "${aws_iam_role.iam_for_lambda.arn}"
  log_group_name = "/aws/lambda/example_lambda_name"
  filter_pattern = "logtype test"
  destination_arn = "${aws_kinesis_stream.test_logstream.arn}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO