Creating Redis conf parameter in AWS Elasticache

49 Views Asked by At

I am currently writing terraform code to deploy an AWS Elasticache, this instance should use a conf file (if we are using a normal redis instance, it should be stored in /usr/local/etc/redis/redis.conf) I found that we can use something like:

resource "aws_elasticache_parameter_group" "redis_parameter_group" {
  name        = "cache-params"
  family      = "redis5.0"
  description = "custom Redis parameter group to use redis.conf"

  parameter {
    name  = "config-file"
    value = file("${path.module}/config/redis.conf")  # path to custom redis.conf file
  }
}

But when I run apply it says

Could not find parameter with name: config-file

0

There are 0 best solutions below