Files
opentf/website/source/docs/providers/aws/r/cloudwatch_log_destination.html.markdown
2017-04-17 13:17:54 +03:00

1.2 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_cloudwatch_log_destination docs-aws-resource-cloudwatch-log-destination Provides a CloudWatch Logs destination.

aws_cloudwatch_log_destination

Provides a CloudWatch Logs destination resource.

Example Usage

resource "aws_cloudwatch_log_destination" "test_destination" {
  name       = "test_destination"
  role_arn   = "${aws_iam_role.iam_for_cloudwatch.arn}"
  target_arn = "${aws_kinesis_stream.kinesis_for_cloudwatch.arn}"
}

Argument Reference

The following arguments are supported:

  • name - (Required) A name for the log destination
  • role_arn - (Required) The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to put data into the target
  • target_arn - (Required) The ARN of the target Amazon Kinesis stream or Amazon Lambda resource for the destination

Attributes Reference

The following attributes are exported:

  • arn - The Amazon Resource Name (ARN) specifying the log destination.

Import

CloudWatch Logs destinations can be imported using the name, e.g.

$ terraform import aws_cloudwatch_log_destination.test_destination test_destination