Skip to content

Persistent change showing up in plan for postgres clickpipe #447

@will-regal-voice

Description

@will-regal-voice

when I have a resource for a postgres CDC clickpipe configured, this will always show up on the plan:

Terraform will perform the following actions:

  # clickhouse_clickpipe.postgres_cdc will be updated in-place
  ~ resource "clickhouse_clickpipe" "postgres_cdc" {
        id             = "<redacted>"
        name           = "staging-rds-clickpipe"
      ~ state          = "Running" -> (known after apply)
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

If I attempt to ignore that attribute by adding a lifecycle block:

  lifecycle {
    ignore_changes = [state]
  }

then you get this persistent warning (also annoying)

Warning: Redundant ignore_changes element

  on rds.tf line 11, in resource "clickhouse_clickpipe" "postgres_cdc":
  11: resource "clickhouse_clickpipe" "postgres_cdc" {

Adding an attribute name to ignore_changes tells Terraform to
ignore future changes to the argument in configuration after the
object has been created, retaining the value originally
configured.

The attribute state is decided by the provider alone and
therefore there can be no configured value to compare with.
Including this attribute in ignore_changes has no effect. Remove
the attribute from ignore_changes to quiet this warning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions