-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: aws_elasticsearch_domain_policy Error: setting Elasticsearch Domain Policy (): ValidationException: A change/update is in progress. Please wait for it to complete before requesting another change #35811
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
We are also facing the same issue. We tried adding the implicit policy, creating the policy as a separate resource and using depends_on to point to the ES domain resource, but no luck. It randomly works and fails. |
Our organization is also facing this issue although we are using OpenSearch and the accompanying |
I'm also facing this issue. I feel like it'll be possible to resolve to check the domain status before updating the policy. terraform-provider-aws/internal/service/opensearch/domain_policy.go Lines 93 to 96 in b9d9303
|
We are facing the same issue using Terraform v1.7.4, AWS provider 5.37.0 on OpenSearch_2.11. |
I am also facing the same issue with Terraform v1.7.1, AWS provider 5.34.0 on OpenSearch_2.11 |
The issue was not occurring with AWS provider 5.38.0. But again it started showing same error with 5.38.0 version. |
I'm still hitting this issue on AWS provider 5.38.0 |
i was facing a similar issue while creating opensearch . i added a sleep condition between The timer was set for 10 mins which i picked randomly but it might work for shorter sleep cycle as well . Below is the example:
Hope this helps |
Yes - that's exactly what I did as per the first post in this issue. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. 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.43.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 still seeing this error on v5.43.0 with aws_elasticsearch_domain_policy. Was this fixed for |
This fix was applied to both the elasticsearch and opensearch resources. Can you open a new issue with the configuration you're observing this with? |
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. |
Terraform Core Version
1.7.3
AWS Provider Version
5.29.0
Affected Resource(s)
aws_elasticsearch_domain
is created and then triggersaws_elasticsearch_domain
, but the second resource fails with:Looks like the first resource is not fully up when the second resource runs.
This used to work, and only stopped working a few weeks ago.
Expected Behavior
apply should work.
The provider should wait for the first resource to be fully up before moving onto the second resource.
Actual Behavior
apply fails, and a second apply works.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Above code causes the issue, but is quite specific to my environment. The code could be simplified, but we would need to ensure the first resource still took too long to initialize in AWS (ie a simpler version of the resource may initialize quicker).
Debug Output
No response
Panic Output
No response
Important Factoids
If I implement a delay of 60 seconds between the two resources (using
time_sleep
resource), then it works.References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: