mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-12 16:00:25 -04:00
1.2 KiB
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 destinationrole_arn- (Required) The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to put data into the targettarget_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