Update snapshot_retention_limit from 0 to 10 on an Elasticache Redis cluster that has 1 node named {node}-002
Cluster is updated with new 10 day retention limit
Actual Behavior
Update snapshot_retention_limit from 0 to 10 on an Elasticache Redis cluster that has 1 node named {node}-002
Terraform receives this error: CacheClusterNotFound: Specified snapshotting cluster does not exist
Add node to Elasticache cluster with name {node}-001
Terraform works correctly
Relevant Error/Panic Output Snippet
Error: modifying ElastiCache Replication Group ({group}): operation error ElastiCache: ModifyReplicationGroup, https response error StatusCode: 404, CacheClusterNotFound: Specified snapshotting cluster does not exist
with module.app.module.redis.aws_elasticache_replication_group.default[0],
on .terraform/modules/app.redis/main.tf line 135, in resource "aws_elasticache_replication_group" "default":
135: resource "aws_elasticache_replication_group" "default" {
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.5.7
AWS Provider Version
5.64.0
Affected Resource(s)
aws_elasticache_replication_group
Expected Behavior
Update
snapshot_retention_limit
from0
to10
on an Elasticache Redis cluster that has 1 node named{node}-002
Cluster is updated with new 10 day retention limitActual Behavior
Update
snapshot_retention_limit
from0
to10
on an Elasticache Redis cluster that has 1 node named{node}-002
Terraform receives this error:CacheClusterNotFound: Specified snapshotting cluster does not exist
Add node to Elasticache cluster with name{node}-001
Terraform works correctlyRelevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Make an elasticache cluster Add a replica node Delete node that has
-001
suffix Update snapshot retention limit value Run terraform and see failureDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
Hack is documented here - I think the issue is pretty clearly stated, it's looking explicitly for
-001
.Original issue here was closed: https://github.com/hashicorp/terraform-provider-aws/issues/1499
Would you like to implement a fix?
None