Allow configuring number of node groups and replicas per node directly for "Redis (cluster mode disabled)"#16829
Conversation
…r parity with API
…e_clusters and cluster_mode
|
Holy smokes. Nothing like nice, quick, easy acceptance tests. I'll get back to you when they run. I've looked over the code and it looks good. |
YakDriver
left a comment
There was a problem hiding this comment.
LGTM 🎉
--- PASS: TestAccAWSElasticacheReplicationGroup_clusteringAndCacheNodesCausesError (5.55s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_Basic (1161.24s)
--- PASS: TestAccAWSElasticacheReplicationGroup_ClusterMode_NonClusteredParameterGroup (1456.18s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAtRestEncryption (631.29s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableAuthTokenTransitEncryption (1400.50s)
--- PASS: TestAccAWSElasticacheReplicationGroup_enableSnapshotting (1396.52s)
--- PASS: TestAccAWSElasticacheReplicationGroup_multiAzInVpc (1013.35s)
--- PASS: TestAccAWSElasticacheReplicationGroup_NumberCacheClusters (1398.35s)
--- PASS: TestAccAWSElasticacheReplicationGroup_redisClusterInVpc2 (1460.76s)
--- PASS: TestAccAWSElasticacheReplicationGroup_tags (1396.92s)
--- PASS: TestAccAWSElasticacheReplicationGroup_updateMaintenanceWindow (845.59s)
--- PASS: TestAccAWSElasticacheReplicationGroup_Uppercase (1400.40s)
--- PASS: TestAccAWSElasticacheReplicationGroup_vpc (672.53s)
|
This has been released in version 3.23.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Typically, when creating a "Redis (cluster mode disabled)"
aws_elasticache_replication_group, the number of nodes is specified usingnumber_cache_clusters, and when creating a "Redis (cluster mode enabled)"aws_elasticache_replication_group, the configuration of node groups is specified usingcluster_mode.num_node_groupsandcluster_mode.replicas_per_node_group. Whether cluster mode is enabled is determined by the parameter group assigned to the replication group.However, the API returns both parameters regardless of the cluster mode setting in the parameter group used by the replication group.
The value of
number_cache_clusterswill always be equal tocluster_mode.num_node_groups * (1 + cluster_mode.replicas_per_node_group). With cluster mode disabled,cluster_mode.num_node_groupsis1.Currently, the resource allows setting
when cluster mode is not enabled, but does not return a value for the
cluster_modeblock.This PR adds the returned value for the
cluster_modeblock and adds acluster_enabledoutput parameter.Release note for CHANGELOG:
Output from acceptance testing: