github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/cloudwatch_log_group.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_cloudwatch_log_group"
     4  sidebar_current: "docs-aws-resource-cloudwatch-log-group"
     5  description: |-
     6    Provides a CloudWatch Log Group resource.
     7  ---
     8  
     9  # aws\_cloudwatch\_log\_group
    10  
    11  Provides a CloudWatch Log Group resource.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_cloudwatch_log_group" "yada" {
    17    name = "Yada"
    18  
    19    tags {
    20      Environment = "production"
    21      Application = "serviceA"
    22    }
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Optional, Forces new resource) The name of the log group. If omitted, Terraform will assign a random, unique name.
    31  * `name_prefix` - (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts with `name`.
    32  * `retention_in_days` - (Optional) Specifies the number of days
    33    you want to retain log events in the specified log group.
    34  * `tags` - (Optional) A mapping of tags to assign to the resource.
    35  
    36  ## Attributes Reference
    37  
    38  The following attributes are exported:
    39  
    40  * `arn` - The Amazon Resource Name (ARN) specifying the log group.
    41  
    42  
    43  ## Import
    44  
    45  Cloudwatch Log Groups can be imported using the `name`, e.g.
    46  
    47  ```
    48  $ terraform import aws_cloudwatch_log_group.test_group yada
    49  ```