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

New variables: create_parameter_group and parameter_group_name #208

Closed y3ti closed 7 months ago

y3ti commented 7 months ago

what

why

This module doesn't currently support major version upgrades of Redis (eg, 6.x to. 7.x) because:

I have decided to add "redis cluster family" as a suffix. AWS follows a similar convention for default parameter groups, using names such as:

Since using . is not possible, I have opted to use - instead.

To prevent any breaking changes, I have introduced a new variable called parameter_group_name. By setting this variable to the current parameter group name, you can prevent any terraform configuration drift.

We can also reuse existing parameter groups.

If we want to use the default parameter group created by AWS (default.redis7)

create_parameter_group = false
engine                 = "redis7"

If we want to use any other existing parameter group:

create_parameter_group = false
parameter_group_name   = "existing-parameter-group-name"

references

Resolves https://github.com/cloudposse/terraform-aws-elasticache-redis/issues/178

I see that other people tried to solve this problem before (see references), but the pull requests were not merged yet:

y3ti commented 7 months ago

I added new variable create_parameter_group, the module can also use default parameter group.

aknysh commented 7 months ago

/terratest

aknysh commented 7 months ago

/terratest