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.8.3
AWS Provider Version
5.51.1
Affected Resource(s)
Expected Behavior
when removing access_policies it should detect the change in plan and apply the removal to AWS
Actual Behavior
It doesn't even recognize the change in terraform plan
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
See: Steps to Reproduce
Steps to Reproduce
Create a aws_opensearch_domain resource with access_policies apply it and then remove access_policies. Try to apply again and will see the problem
Debug Output
No response
Panic Output
No response
Important Factoids
I believe this has to do with the condition here https://github.com/hashicorp/terraform-provider-aws/blob/492c47b49c53ab2c875d40b2eba4a524d4b97dfd/internal/service/opensearch/domain.go#L861 or here https://github.com/hashicorp/terraform-provider-aws/blob/492c47b49c53ab2c875d40b2eba4a524d4b97dfd/internal/service/opensearch/domain.go#L993
References
No response
Would you like to implement a fix?
None