Skip to content

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

@Tiana125

Description

@Tiana125

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
                      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions