-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
r/aws_elasticache_replication_group: retry InvalidReplicationGroupStateFault
errors in tag operations
#41954
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
a73e24f
to
b08d680
Compare
This function is a generic version of `RetryWhenIsAErrorMessageContains` which eliminates the need to perform a type assertion on the returned result.
These options will allow for wrapping list, tag, and untag operations in retry logic for services which may need to for certain resource types.
…ateFault` errors in tag operations This fixes a regression introduced during the AWS SDK for Go V2 migration of Elasticache. Previously the generated tagging logic for AWS SDK for Go V1 included retry logic around the list, tag, and untag operations. These were inadvertently dropped during the SDK migration, and have been added back here using the AWS SDK V2 form of retry handling which accepts error types as an argument. As with the previous implementation tagging operations will have a retry timeout of 15 minutes.
b08d680
to
a3adf5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccElastiCacheReplicationGroup_tag\|TestAccElastiCacheReplicationGroup_Tag' PKG=elasticache ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.7 test ./internal/service/elasticache/... -v -count 1 -parallel 3 -run=TestAccElastiCacheReplicationGroup_tag\|TestAccElastiCacheReplicationGroup_Tag -timeout 360m -vet=off
2025/03/24 16:40:28 Initializing Terraform AWS Provider...
=== RUN TestAccElastiCacheReplicationGroup_tags
=== PAUSE TestAccElastiCacheReplicationGroup_tags
=== RUN TestAccElastiCacheReplicationGroup_TagWithOtherModification_version
=== PAUSE TestAccElastiCacheReplicationGroup_TagWithOtherModification_version
=== RUN TestAccElastiCacheReplicationGroup_TagWithOtherModification_numCacheClusters
=== PAUSE TestAccElastiCacheReplicationGroup_TagWithOtherModification_numCacheClusters
=== CONT TestAccElastiCacheReplicationGroup_tags
=== CONT TestAccElastiCacheReplicationGroup_TagWithOtherModification_numCacheClusters
=== CONT TestAccElastiCacheReplicationGroup_TagWithOtherModification_version
--- PASS: TestAccElastiCacheReplicationGroup_tags (959.06s)
--- PASS: TestAccElastiCacheReplicationGroup_TagWithOtherModification_numCacheClusters (1265.09s)
--- PASS: TestAccElastiCacheReplicationGroup_TagWithOtherModification_version (1416.03s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/elasticache 1421.887s
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.93.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. Thank you! |
Description
This fixes a regression introduced during the AWS SDK for Go V2 migration of Elasticache. Previously, the generated tagging logic for AWS SDK for Go V1 included retry logic around the list, tag, and untag operations. These were inadvertently dropped during the SDK migration, and have been added back here using the AWS SDK V2 form of retry handling which accepts error types as an argument. As with the previous implementation tagging operations will have a retry timeout of 15 minutes.
Relations
Closes #35952
Closes #40948
Relates #36310 (Initial implementation of tag operation retries,
v5.41.0
)Relates #38046 (AWS SDK migration which removed retries and caused the regression,
v5.59.0
)Output from Acceptance Testing