Resource: 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

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import CloudWatch Logs destinations using the name. For example:

import {
  to = aws_cloudwatch_log_destination.test_destination
  id = "test_destination"
}

Using terraform import, import CloudWatch Logs destinations using the name. For example:

% terraform import aws_cloudwatch_log_destination.test_destination test_destination