Bug: Cannot import existing team because "opsgenie_team" resource "ignore_members" flag not working #445
Open
Description
I am trying to bring our existing OpsGenie setup under Terraform control. However, I can not import an existing team that was created using the Web UI to terraform, because terraform plan
shows that it will delete the team members. Setting
ignore_members = true
has no effect.
Terraform Version
Terraform v1.9.1
on linux_amd64
- provider registry.terraform.io/opsgenie/opsgenie v0.6.36
Affected Resource(s)
- opsgenie_team
Terraform Configuration Files
resource "opsgenie_team" "lautus_support" {
name = "Lautus Support"
ignore_members = true
}
import {
to = opsgenie_team.lautus_support
id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Redacted for privacy
}
Expected Behavior
Terraform plan should show that the existing team will be imported without changing its members.
Actual Behavior
Terraform plan showed that all current members would be removed from the team.
Metadata
Assignees
Labels
No labels