Resource: aws_cloudwatch_log_stream

Provides a CloudWatch Log Stream resource.

Example Usage

resource "aws_cloudwatch_log_group" "yada" {
  name = "Yada"
}

resource "aws_cloudwatch_log_stream" "foo" {
  name           = "SampleLogStream1234"
  log_group_name = aws_cloudwatch_log_group.yada.name
}

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 Log Stream using the stream's log_group_name and name. For example:

import {
  to = aws_cloudwatch_log_stream.foo
  id = "Yada:SampleLogStream1234"
}

Using terraform import, import Cloudwatch Log Stream using the stream's log_group_name and name. For example:

% terraform import aws_cloudwatch_log_stream.foo Yada:SampleLogStream1234