Skip to content

Terraform detects change even when there is no change #363

@sameer2907

Description

@sameer2907

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions