[Bug]: Error: updating OpenSearch Domain (): ValidationException: A change/update is in progress. Please wait for it to complete before requesting another change. #38136
The aws_opensearch_domain resource waits until OS domain is ready to take another change.
Actual Behavior
Error: updating OpenSearch Domain (): ValidationException: A change/update is in progress. Please wait for it to complete before requesting another change.
Relevant Error/Panic Output Snippet
aws_security_group.os: Modifying... [id=id]
aws_security_group.os: Modifications complete after 0s [id=id]
module.opensearch.aws_opensearch_domain.this: Modifying... []
Error: updating OpenSearch Domain (): ValidationException: A change/update is in progress. Please wait for it to complete before requesting another change.
with module.opensearch.aws_opensearch_domain.this,
on .terraform/modules/opensearch/main.tf line 21, in resource "aws_opensearch_domain" "this":
21: resource "aws_opensearch_domain" "this" {
Make a aws_security_group (referenced in the aws_opensearch_domain) change and change any other parameter of the Opensearch domain (like instance type for example).
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.7.5
AWS Provider Version
5.55.0
Affected Resource(s)
Expected Behavior
The
aws_opensearch_domain
resource waits until OS domain is ready to take another change.Actual Behavior
Error: updating OpenSearch Domain (): ValidationException: A change/update is in progress. Please wait for it to complete before requesting another change.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
We use terra grunt as a wrapper, so no specific tf file to share here. However a similar bug has already been seen & fixed in https://github.com/hashicorp/terraform-provider-aws/issues/35811.
Steps to Reproduce
Make a aws_security_group (referenced in the aws_opensearch_domain) change and change any other parameter of the Opensearch domain (like instance type for example).
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes