terraform-aws-modules / terraform-aws-elasticache

Terraform module to create AWS ElastiCache resources πŸ‡ΊπŸ‡¦
https://registry.terraform.io/modules/terraform-aws-modules/elasticache/aws
Apache License 2.0
16 stars 28 forks source link

Unable to configure log_delivery_configuration on aws_elasticache_replication_group when using Valkey engine type #25

Open jt-nbs opened 2 weeks ago

jt-nbs commented 2 weeks ago

Is your request related to a new offering from AWS?

Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

Is your request related to a problem? Please describe.

The way the module is currently written, it's not possible to configure log delivery on the aws_elasticache_replication_group resource if the engine is Valkey.

Describe the solution you'd like.

Be able to setup log delivery on aws_elasticache_replication_group when using the Valkey engine...

dynamic "log_delivery_configuration" {
    for_each = { for k, v in var.log_delivery_configuration : k => v if var.engine != "memcached" }

    content {
      ...
    }
}

Describe alternatives you've considered.

Checked if log delivery configuration had it's own dedicated resource, but it doesn't.

Additional context

I'm looking to configure the log delivery dynamic block in combination with Valkey engine type, however the module doesn't support it currently.