Resource: aws_cloudwatch_log_group

Provides a CloudWatch Log Group resource.

Example Usage

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

  tags = {
    Environment = "production"
    Application = "serviceA"
  }
}

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 Groups using the name. For example:

import {
  to = aws_cloudwatch_log_group.test_group
  id = "yada"
}

Using terraform import, import Cloudwatch Log Groups using the name. For example:

% terraform import aws_cloudwatch_log_group.test_group yada