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
5.62.0
AWS Provider Version
1.7.5
Affected Resource(s)
aws_elasticache_global_replication_group
elasticache_replication_group
Expected Behavior
The destruction should proceed without waiting for the dissociation of replica from Global DataStore after it's already dissociated
Actual Behavior
During destruction, it waits for dissociation of replica from Global Datastore and it just ends up timeout.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "aws_elasticache_global_replication_group" "elasticache_global_replication_group" {
resource "aws_elasticache_replication_group" "primary-redis-cluster-encrypted" {
resource "aws_elasticache_replication_group" "replica-redis-cluster-encrypted" {
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Looks like there is no consideration about region. So it may be waiting for the primary when it is dissociating replica from global datastore https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/elasticache/global_replication_group.go#L787
Actually I resolved this issue to have different ID between primary and replica
Would you like to implement a fix?
None