logzio / terraform-provider-logzio

Terraform provider for logz.io alerts, endpoints and users
Apache License 2.0
19 stars 17 forks source link

Alert is_enabled field is does not default to true #102

Closed alonz closed 2 years ago

alonz commented 2 years ago

According to the alerts v2 docs

is_enabled - (Boolean) True by default

however omitting is_enabled from my TF file, results in terraform plan attempting to set it to null

  ~ resource "logzio_alert_v2" "deployment_alerts" {
        id                             = "1954723"
      - is_enabled                     = true -> null
        tags                           = [
            "alert",
            "deployment",
        ]
        # (13 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

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

which in turn disables the alert So either the documentation is wrong or it does not work as intended. Not a big issue just requires always setting is_enabled = true to get an active alert.

mirii1994 commented 2 years ago

Hi @alonz , Thanks for reaching out. We'll work on a fix for it in the next version.

mirii1994 commented 2 years ago

Hi @alonz , we release v1.10.3 that should resolve this issue. Can you please confirm that the issue is solved?

alonz commented 2 years ago

Thanks !