cloudposse / terraform-aws-elasticache-redis

Terraform module to provision an ElastiCache Redis Cluster
https://cloudposse.com/accelerate
Apache License 2.0
141 stars 246 forks source link

Add `log_delivery_configuration` #168

Closed nitrocode closed 2 years ago

nitrocode commented 2 years ago

what

why

references

Test

Test this out in your infrastructure

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

  context = module.this.context
}

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

  source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=log_delivery"

  log_delivery_configuration = [
    {
      destination      = module.cloudwatch_logs.log_group_name
      destination_type = "cloudwatch-logs"
      log_format       = "json"
      log_type         = "engine-log"
    }
  ]

  context = module.this.context
}
nitrocode commented 2 years ago

/test all

nitrocode commented 2 years ago

/test all

nitrocode commented 2 years ago

/test all

nitrocode commented 2 years ago

/test all

nitrocode commented 2 years ago

/test all

aknysh commented 2 years ago

/test all