terraform-aws-elasticache-redis icon indicating copy to clipboard operation
terraform-aws-elasticache-redis copied to clipboard

Allow passing in a map of parameters

Open nitrocode opened this issue 3 years ago • 0 comments
trafficstars

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Instead of passing in parameters like this

  parameters = [
    {
      name  = "activedefrag"
      value = "no"
    }
  ]

Use this

  map_parameters = {
    activedefrag = "no"
  }

Perhaps we can use an alternate variable like map_parameters

See https://github.com/cloudposse/terraform-aws-ecs-container-definition#input_map_environment for an example in another repo

Note: The values should also be trimmed or AWS API will throw errors

nitrocode avatar Dec 16 '21 16:12 nitrocode