phillbaker / terraform-provider-elasticsearch

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

Terraform detects change even when there is no change #363

Open sameer2907 opened 9 months ago

sameer2907 commented 9 months ago

I am using the provider elasticsearch_xpack_index_lifecycle_policy and everytime I am deploying code even without any changes, it is saying, that the following values have been updated, like:- - in_use_by = {} -> null - modified_date = "2023-12-20T12:01:52.586Z" -> null - version = 4 -> null

I don't want terraform to pick these changes. I tried using lifecycle block, and ignore_changes feature, but it is also giving below error:

Error: Unsupported attribute

on logging.tf line 304, in resource "elasticsearch_xpack_index_lifecycle_policy" "app_logs_policy": 304: in_use_by,

This object has no argument, nested block, or exported attribute named "in_use_by".

Provider: phillbaker/elasticsearch Version: 2.0.7

Please resolve this issue asap!

sameer2907 commented 9 months ago

I saw that this issue was resolved here: https://github.com/phillbaker/terraform-provider-elasticsearch/issues/277#issuecomment-1161014314

But I am still getting the same issue