Use this data source to get information about an AWS Cloudwatch Log Group
data "aws_cloudwatch_log_group" "example" {
name = "MyImportantLogs"
}
This data source supports the following arguments:
name
- (Required) Name of the Cloudwatch log groupThis data source exports the following attributes in addition to the arguments above:
arn
- ARN of the Cloudwatch log group. Any :*
suffix added by the API, denoting all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with other AWS services that do not accept the suffix.creation_time
- Creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.kms_key_id
- ARN of the KMS Key to use when encrypting log data.log_group_class
- The log class of the log group.retention_in_days
- Number of days log events retained in the specified log group.tags
- Map of tags to assign to the resource.