github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/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 ``` 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` - (Required) The name of the log group 31 * `retention_in_days` - (Optional) Specifies the number of days 32 you want to retain log events in the specified log group. 33 * `tags` - (Optional) A mapping of tags to assign to the resource. 34 35 ## Attributes Reference 36 37 The following attributes are exported: 38 39 * `arn` - The Amazon Resource Name (ARN) specifying the log group. 40 41 42 ## Import 43 44 Cloudwatch Log Groups can be imported using the `name`, e.g. 45 46 ``` 47 $ terraform import aws_cloudwatch_log_group.test_group yada 48 ```