Configures Redis log delivery to both CloudWatch Logs and Kinesis Firehose.

Terraform Template

resource "aws_elasticache_replication_group" "test" {
  apply_immediately = true
  auto_minor_version_upgrade = false
  description = "test description"

  log_delivery_configuration {
    destination = "aws_cloudwatch_log_group.example.name"
    destination_type = "cloudwatch-logs"
    log_format = "text"
    log_type = "slow-log"
  }

  log_delivery_configuration {
    destination = "aws_kinesis_firehose_delivery_stream.example.name"
    destination_type = "kinesis-firehose"
    log_format = "json"
    log_type = "engine-log"
  }
  maintenance_window = "tue:06:30-tue:07:30"
  node_type = "cache.t3.small"
  port = 6379
  replication_group_id = "myreplicaciongroup"
  snapshot_window = "01:00-02:00"
}