Allow creating MultiAZ memcached cluster in a single terraform apply where number nodes > number of AZ's #207
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/elasticache
Issues and PRs that pertain to the elasticache service.
Milestone
This issue was originally opened by @msroest as hashicorp/terraform#7850. It was migrated here as part of the provider split. The original body of the issue is below.
Currently a aws_elasticache_cluster using MultiAZ setup with num_cache_nodes > then count of availability_zones.
AWS validation will fail with the following error:
aws_elasticache_cluster.swimlane-memcache: Error creating Elasticache: InvalidParameterCombination: Must specify the same number of preferred availability zones as requested number of nodes.
status code: 400, request id: 63124b02-54f6-11e6-95b5-3960d6e4870c
It can be done in 2 stages by setting num_cache_nodes to the same as the number of AZ's then after creation is complete change the num_cache_nodes to the final desired number.
It would be nice if terraform would do this itself.
The text was updated successfully, but these errors were encountered: