Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweeper: aws_elasticache_cluster does not correctly handle Cluster that is last member of Replication Group #17647

Closed
gdavison opened this issue Feb 17, 2021 · 2 comments · Fixed by #17650
Assignees
Labels
service/elasticache Issues and PRs that pertain to the elasticache service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone

Comments

@gdavison
Copy link
Contributor

The aws_elasticache_cluster sweeper depends on the aws_elasticache_replication_group sweeper. If the aws_elasticache_replication_group fails for some reason, the member clusters still exists and will be picked up by the aws_elasticache_cluster sweeper.

If the Cluster sweeper tries to delete the last member Cluster in a Replication Group, it receives the following error:

InvalidCacheClusterState: Cannot delete the cache cluster since it is the only member of a replication group. Delete the replication group instead.

Aside from one particular case, the InvalidCacheClusterState error is retried for 5 minutes.

Affected Resource

  • aws_elasticache_cluster
@ghost ghost added the service/elasticache Issues and PRs that pertain to the elasticache service. label Feb 17, 2021
@gdavison gdavison added the tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. label Feb 17, 2021
@gdavison gdavison self-assigned this Feb 17, 2021
@github-actions github-actions bot added this to the v3.29.0 milestone Feb 17, 2021
@ghost
Copy link

ghost commented Feb 19, 2021

This has been released in version 3.29.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 20, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/elasticache Issues and PRs that pertain to the elasticache service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
1 participant