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

planning again after clean apply still shows changes in opsgenie_integration_action #458

Open
Tiana125 opened this issue Nov 11, 2024 · 0 comments

Comments

@Tiana125
Copy link

Possibly related to #322

Terraform Version

Terraform v1.4.4

Affected Resource(s)

opsgenie_integration_action

Terraform Configuration Files

resource "opsgenie_integration_action" "create_alert" {
  integration_id = xxx
  create {
    name                           = "Create alert"
    message                     = "{{message}}"
    alias                             = "{{alias}}"
    description                 = "{{description}}"
    user                             = "{{user}}"
    source                         = "{{source}}"
    ignore_responders_from_payload = true
    responders {
      id   = xxx
      type = "team"
    }

    filter {
      type = "match-all-conditions"
      conditions {
        field          = "extra_properties_key_prefix-context"
        operation      = "equals"
        expected_value = "xxx"
      }
    }
  }
}

Terraform Plan

  # module.opsgenie_integration.opsgenie_integration_action.create_alert will be updated in-place
  ~ resource "opsgenie_integration_action" "create_alert" {
        id             = "xxx"
        # (1 unchanged attribute hidden)
      ~ create {
            name                                 = "Create alert"
            tags                                 = []
            # (17 unchanged attributes hidden)
          ~ filter {
                # (1 unchanged attribute hidden)
              - conditions {
                  - expected_value = "xxx" -> null
                  - field          = "extra-properties" -> null
                  - key            = "context" -> null
                  - not            = false -> null
                  - operation      = "equals" -> null
                  - order          = 0 -> null
                }
              + conditions {
                  + expected_value = "xxx"
                  + field          = "extra_properties_key_prefix-context"
                  + not            = false
                  + operation      = "equals"
                }
            }
            # (1 unchanged block hidden)
        }
    }```


### Expected Behavior
After applying this plan and re-running plan on the same code, it should show no changes. 

### Actual Behavior
After applying this plan and re-running plan on the same code, the same change is shown.

### Steps to Reproduce
1. `terraform apply`
2. `terraform plan`

### Note
This is what terraform state has
                    "conditions": [
                      {
                        "expected_value": "xxx",
                        "field": "extra_properties_key_prefix-context",
                        "key": "",
                        "not": false,
                        "operation": "equals",
                        "order": null
                      }
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

No branches or pull requests

1 participant