Redis limitations

586 views
Skip to first unread message

John Parfitt

unread,
Dec 9, 2016, 6:15:30 PM12/9/16
to Terraform
Hi all,

I'm trying to terraform Elasticache/Redis and am running into some snags. Here is my config:

resource "aws_elasticache_replication_group" "vnu-prod-global" {
    replication_group_id
= "vnu-prod-global"
    replication_group_description
= "vnu-prod-global"
    engine
= "redis"
    port
= 6379
    number_cache_clusters
= 2
    node_type
= "cache.r3.large"
    parameter_group_name
= "default.redis2.8"
    subnet_group_name
= "cache"
}


The "parameter_group_name" seems to only accept default.redis3.2

When i try to launch 2.8, here is the error I get:

Error applying plan:

1 error(s) occurred:

* aws_elasticache_replication_group.vnu-prod-global: Error creating Elasticache Replication Group: InvalidParameterCombination: Expected a parameter group of family redis3.2 but found one of family redis2.8
status code: 400, request id: b641791c-be64-11e6-a5d5-4b14bb8e852a


Also - when will the option to enable Multi AZ be available?

Thank you

David Adams

unread,
Dec 9, 2016, 7:52:07 PM12/9/16
to terrafo...@googlegroups.com
You can specify ' engine_version = "2.8.23" ' although it looks like that's not documented. To get a list of versions available:

    aws elasticache describe-cache-engine-versions

I assume the list is available in the console as well.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/de7290e1-bce9-447a-89fa-ca5e84baa875%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

John Parfitt

unread,
Dec 12, 2016, 12:06:57 PM12/12/16
to Terraform
I've tried that too. Same result.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.

David Adams

unread,
Dec 12, 2016, 12:48:37 PM12/12/16
to terrafo...@googlegroups.com
I dunno, it's hard to say from what you've provided. It works for me with:

    engine = "redis"
    engine_version = "2.8.23"
    parameter_group_name = "default.redis2.8"

I also set automatic_failover_enabled, security_group_ids, and availability_zones in addition to the fields you list in your example.


To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/aa020ae3-b530-4090-8bcb-253d07fa96ab%40googlegroups.com.

John Parfitt

unread,
Dec 12, 2016, 12:53:14 PM12/12/16
to Terraform
Actually nvm, you are correct.

"engine_version" must be specified in order for the paramter_group_name to work with 2.8, else it excepts the most recent version.

Thank you!

John Parfitt

unread,
Dec 12, 2016, 12:55:18 PM12/12/16
to Terraform
Yes i have all of those set as well, except for automatic_failover_enabled, which i should do. Thanks again.

John Parfitt

unread,
Dec 12, 2016, 1:11:24 PM12/12/16
to Terraform
One more thing. Is there a way to enable "Multi AZ" for Redis? I was hoping automatic_failover_enabled would do it, since, in the GUI, there is a checkbox for "Multi-AZ with Auto-Failover". But it's still showing as disabled.

I see an "az_mode" for aws_elasticache_cluster, but nothing for replication_group.


On Monday, December 12, 2016 at 9:48:37 AM UTC-8, David Adams wrote:
Reply all
Reply to author
Forward
0 new messages