-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_user_group_association: Handle concurrent updates (#28688) #28689
r/aws_elasticache_user_group_association: Handle concurrent updates (#28688) #28689
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
…ashicorp#28688) If a group is in status "Modifying", attempts to create or destroy an association fail with an `InvalidUserGroupState` error. Retry the operation until the status changes back to "Active".
753345a
to
ba5805f
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.
Welcome @petur 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
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=TestAccElastiCacheUserGroupAssociation_' PKG=elasticache ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elasticache/... -v -count 1 -parallel 3 -run=TestAccElastiCacheUserGroupAssociation_ -timeout 180m
=== RUN TestAccElastiCacheUserGroupAssociation_basic
=== PAUSE TestAccElastiCacheUserGroupAssociation_basic
=== RUN TestAccElastiCacheUserGroupAssociation_update
=== PAUSE TestAccElastiCacheUserGroupAssociation_update
=== RUN TestAccElastiCacheUserGroupAssociation_disappears
=== PAUSE TestAccElastiCacheUserGroupAssociation_disappears
=== RUN TestAccElastiCacheUserGroupAssociation_multiple
=== PAUSE TestAccElastiCacheUserGroupAssociation_multiple
=== CONT TestAccElastiCacheUserGroupAssociation_basic
=== CONT TestAccElastiCacheUserGroupAssociation_disappears
=== CONT TestAccElastiCacheUserGroupAssociation_update
--- PASS: TestAccElastiCacheUserGroupAssociation_disappears (272.60s)
=== CONT TestAccElastiCacheUserGroupAssociation_multiple
--- PASS: TestAccElastiCacheUserGroupAssociation_basic (277.28s)
--- PASS: TestAccElastiCacheUserGroupAssociation_update (396.19s)
--- PASS: TestAccElastiCacheUserGroupAssociation_multiple (427.46s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/elasticache 705.057s
@petur Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.49.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! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
If a group is in status "Modifying", attempts to create or destroy an association fail with an
InvalidUserGroupState
error. Retry the operation until the status changes back to "Active".Description
Creating or destroying an
aws_elasticache_user_group_association
sets the user group in status "Modifying". When the group is in this status, no other changes can be made. If two association resources are created or destroyed at the same time (even in the same module), one will fail with anInvalidUserGroupState
error.To avoid this, retry create and destroy operations until the
InvalidUserGroupState
error goes away.Relations
Closes #28688
References
Output from Acceptance Testing