Open
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform v0.11.7
- provider.aws v1.31.0
- provider.chef v0.1.0
- provider.external v1.0.0
- provider.null v1.0.0
- provider.template v1.0.
Affected Resource(s)
aws_elasticache_replication_group
Terraform Configuration Files
resource "aws_elasticache_replication_group" "redis-ap-southeast-2" {
provider = "aws.stage-ap-southeast-2"
engine = "redis"
engine_version = "4.0.10"
replication_group_id = "reds"
replication_group_description = "redis"
node_type = "cache.t2.medium"
port = 6379
parameter_group_name = "default.redis4.0.cluster.on"
automatic_failover_enabled = true
auto_minor_version_upgrade = true
at_rest_encryption_enabled = true
transit_encryption_enabled = false
subnet_group_name = "${aws_elasticache_subnet_group.redis-ap-southeast-2.name}"
security_group_ids = [
"${aws_security_group.redis-ap-southeast-2.id}"
]
snapshot_arns = [
"arn:aws:s3:::temp-redis-ap-southeast-2/0.rdb",
"arn:aws:s3:::temp-redis-ap-southeast-2/1.rdb",
"arn:aws:s3:::temp-redis-ap-southeast-2/2.rdb"
]
maintenance_window = "sun:05:00-sun:09:00"
snapshot_window = "05:00-09:00"
cluster_mode {
replicas_per_node_group = 1
num_node_groups = 3
}
}
Debug Output
Expected Behavior
Created redis cluster from snapshot
Actual Behavior
Error: Error applying plan:
1 error(s) occurred:
* aws_elasticache_replication_group.redis-ap-southeast-2: 1 error(s) occurred:
* aws_elasticache_replication_group.redis-ap-southeast-2: Error creating Elasticache Replication Group: InvalidParameterCombination: Slots must be provided when restoring from snapshot ARNs with cluster mode enabled
status code: 400, request id: 1177d4c9-9d15-11e8-b12c-6347cdd5feee
Steps to Reproduce
terraform apply