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"
}
}
}
}
# 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
}
Possibly related to #322
Terraform Version
Terraform v1.4.4
Affected Resource(s)
opsgenie_integration_action
Terraform Configuration Files
Terraform Plan