Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
1.2.6
Affected Resource(s)
Please list the resources as a list, for example:
resource_opsgenie_escalation
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
data "opsgenie_schedule" "core-infra-eng" {
name = "Central - Infra Eng_schedule"
}
data "opsgenie_schedule" "data-infra-eng" {
name = "Central - Data Infra_schedule"
}
data "opsgenie_team" "core-infra-eng" {
name = "Central - Infra Eng"
}
data "opsgenie_team" "data-infra-eng" {
name = "Central - Data Infra"
}
resource "opsgenie_service" "service" {
name = var.service_name
team_id = lower(var.owner_team) == "core infra eng" ? data.opsgenie_team.core-infra-eng.id : data.opsgenie_team.data-infra-eng.id
}
data "opsgenie_escalation" "escalation-data-infra-eng" {
name = "Central - Data Infra_escalation"
}
data "opsgenie_escalation" "escalation-infra-eng" {
name = "Central - Infra Eng_escalation"
}
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
1.2.6
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
https://gist.github.com/jakeyheath/696639964051f11b63118bd1643b5cf3
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
No crash
Actual Behavior
Crash
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform apply
Important Factoids
I am running the same code but updated the versions