phillbaker / terraform-provider-elasticsearch

An elasticsearch provider for terraform
https://registry.terraform.io/providers/phillbaker/elasticsearch
Mozilla Public License 2.0
303 stars 133 forks source link

terraform import elasticsearch_opensearch_ism_policy.cleanup doesn't import existing ISM policies #353

Open vchslav opened 1 year ago

vchslav commented 1 year ago

"terraform import elasticsearch_opensearch_ism_policy.cleanup ism_policy_id" returns "Import successful!" but actually nothing isn't being added to the state.

All the rest actions work well - add, update, and remove. The state is updated appropriately. It was tested on AWS OpenSearch 2.3 Service software versions "R20221114-P5" and "OpenSearch_2_3_R20221114-P6".

Thanks!

phillbaker commented 1 year ago

Hello, thanks for opening an issue. I see that we don't have a test covering the import of ISM policies.

Please note that this provider doesn't officially support OpenSearch 2.x however, so if it is an issue with the version change, that will have to be fixed on https://github.com/opensearch-project/terraform-provider-opensearch