Skip to main content

Module: cloudwatch-logs

Terraform module for creation of CloudWatch Log Streams and Log Groups. Useful in combination with Fluentd/Fluent-bit for shipping logs.

Usage

module "cloudwatch_logs" {
source = "cloudposse/cloudwatch-logs/aws"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"

namespace = "eg"
stage = "prod"
name = "app"
stream_names = ["kafka-instance-1", "kafka-instance-2"]
}

Examples

Here's a complete example of using this terraform-aws-cloudwatch-logs module.