[Bug]: aws_opensearchserverless_access_policy "Provider produced inconsistent result after apply" #39319
Labels
bug
Addresses a defect in current functionality.
service/opensearchserverless
Issues and PRs that pertain to the opensearchserverless service.
Milestone
Terraform Core Version
1.0.0
AWS Provider Version
5.65.0
Affected Resource(s)
Expected Behavior
We should be able to apply changes to the resource despite automatic user cleanup.
Actual Behavior
The resource can no longer be managed by terraform
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
the problem is with the permissioned arns (a list of user arns). If a user is deleted, AWS will automatically remove the user from opensearch's access policy outside of terraform's state management. Once this occurs the resource is in an unrecoverable state where there's a mismatch between terraform's state and the AWS state, resulting in "Provider produced inconsistent result after apply" errors
Debug Output
No response
Panic Output
No response
Important Factoids
We tried to fix this by
However this had no impact.
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: