opensearch-project / terraform-provider-opensearch

https://registry.terraform.io/providers/opensearch-project/opensearch
Apache License 2.0
74 stars 57 forks source link

[BUG] Unable to import cluster settings #57

Open arichtman-srt opened 1 year ago

arichtman-srt commented 1 year ago

What is the bug?

Terraform cannot import resource opensearch_cluster_settings

How can one reproduce the bug?

  1. Create an empty resource block of type opensearch_cluster_settings
  2. Run terraform import opensearch_cluster_settings foo

What is the expected behavior?

Terraform imports and can view the cluster settings state

What is your host/environment?

$ uname -a && terraform -version
Darwin bne-nb-ariel 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:21:34 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8112 arm64 arm Darwin
Terraform v1.5.3
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.62.0
+ provider registry.terraform.io/hashicorp/external v2.3.1
+ provider registry.terraform.io/hashicorp/local v2.4.0
+ provider registry.terraform.io/hashicorp/null v3.2.1
+ provider registry.terraform.io/hashicorp/random v3.5.1
+ provider registry.terraform.io/opensearch-project/opensearch v1.0.0
+ provider registry.terraform.io/phillbaker/elasticsearch v2.0.4

Do you have any screenshots?

image

image

Do you have any additional context?

Full trace log, password redacted. https://gist.github.com/arichtman-srt/bb7188bd4526d9ddbedba7975bdafbc5

Possibly related. https://github.com/phillbaker/terraform-provider-elasticsearch/issues/288#issuecomment-1248473782

prudhvigodithi commented 1 year ago

[Untriage] Thanks @arichtman-srt for bringing this up, @phillbaker can you please add your thoughts here? Thank you