Skip to content

Resource: awsCloudwatchLogStream

Provides a CloudWatch Log Stream resource.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsCloudwatchLogGroupYada = new aws.cloudwatchLogGroup.CloudwatchLogGroup(
  this,
  "yada",
  {
    name: "Yada",
  }
);
new aws.cloudwatchLogStream.CloudwatchLogStream(this, "foo", {
  logGroupName: awsCloudwatchLogGroupYada.name,
  name: "SampleLogStream1234",
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the log stream. Must not be longer than 512 characters and must not contain :
  • logGroupName - (Required) The name of the log group under which the log stream is to be created.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

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

Import

Cloudwatch Log Stream can be imported using the stream's logGroupName and name, e.g.,

$ terraform import aws_cloudwatch_log_stream.foo Yada:SampleLogStream1234