Closed gjacquet closed 9 months ago
❯ terraform version Terraform v1.5.7 on darwin_amd64 + provider registry.terraform.io/hashicorp/aws v5.19.0 + provider registry.terraform.io/hashicorp/http v3.4.0 + provider registry.terraform.io/hashicorp/null v3.2.1 + provider registry.terraform.io/opsgenie/opsgenie v0.6.34
Please list the resources as a list, for example:
time_retriction
resource "opsgenie_team_routing_rule" "test" { name = "test" order = 0 team_id = "xxx" timezone = "America/Los_Angeles" criteria { type = "match-all" } notify { type = "none" } }
No drift once applied
Perpetual drift on opsgenie_team_routing_rule without a time_restriction. E.g.
opsgenie_team_routing_rule
time_restriction
~ resource "opsgenie_team_routing_rule" "test" { name = "test" # (4 unchanged attributes hidden) - time_restriction { - restriction { - end_hour = 0 -> null - end_min = 0 -> null - start_hour = 0 -> null - start_min = 0 -> null } } # (2 unchanged blocks hidden) }
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
restriction
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
time_retriction
)Terraform Configuration Files
Expected Behavior
No drift once applied
Actual Behavior
Perpetual drift on
opsgenie_team_routing_rule
without atime_restriction
. E.g.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
. This step will show a driftReferences
restriction
with default value leading to the drift. I think it should have returned an empty map instead.