Use this data source to get a list of AWS Cloudwatch Log Groups
data "aws_cloudwatch_log_groups" "example" {
log_group_name_prefix = "/MyImportantLogs"
}
This data source supports the following arguments:
log_group_name_prefix
- (Optional) Group prefix of the Cloudwatch log groups to listThis data source exports the following attributes in addition to the arguments above:
arns
- Set of ARNs of the Cloudwatch log groupslog_group_names
- Set of names of the Cloudwatch log groups