Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes are applied, but never saved #11

Closed
donalddewulf opened this issue Mar 7, 2022 · 1 comment · Fixed by #19
Closed

Changes are applied, but never saved #11

donalddewulf opened this issue Mar 7, 2022 · 1 comment · Fixed by #19

Comments

@donalddewulf
Copy link

donalddewulf commented Mar 7, 2022

I had the following resource

resource "coralogix_alert" "castle_purchase_error_web" {
  name     = "Castle purchase error web - ${var.environment_name}"
  description = "Unable to purchase gift on web"
  severity = "info"
  enabled  = true
  type     = "text"

  filter {
    text         = "logStoreFailure AND castle AND platform:3"
    applications = ["app-${var.environment_name}"]
    subsystems   = []
    severities   = []
  }

  condition {
    condition_type = "more_than"
    threshold      = 30
    timeframe      = "1H"
  }

  notifications {
    integrations = ["Fraud"]
  }
}

I changed the text to be the following

text         = "\"logStoreFailure\" AND \"castle\" AND platform:3"

Terraform says it's going to update the alert

 # coralogix_alert.castle_purchase_error_web will be updated in-place
  ~ resource "coralogix_alert" "castle_purchase_error_web" {
        id          = "f1a49df1-9a3e-11ec-b57d-57f7f49f8514"
        name        = "Castle purchase error web - live"
        # (4 unchanged attributes hidden)


      + filter {
          + applications = [
              + "app-live",
            ]
          + severities   = []
          + subsystems   = []
          + text         = "\"logStoreFailure\" AND \"castle\" AND platform:3"
        }
      - filter {
          - applications = [
              - "app-live",
            ] -> null
          - severities   = [] -> null
          - subsystems   = [] -> null
          - text         = "logStoreFailure AND castle AND platform:3" -> null
        }

        # (2 unchanged blocks hidden)
    }

Once apply has finished, the alert still has the old values.

Each terraform apply wants to update the resource.

@giltk giltk linked a pull request Jun 18, 2022 that will close this issue
@giltk
Copy link
Contributor

giltk commented Jun 18, 2022

#19 closed this issue

@giltk giltk closed this as completed Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants