hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.61k stars 9k forks source link

[Bug]: Error: updating OpenSearch Domain (): ValidationException: A change/update is in progress. Please wait for it to complete before requesting another change. #38136

Open rumenvasilev opened 1 week ago

rumenvasilev commented 1 week ago

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

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" {

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

github-actions[bot] commented 1 week ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue