Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cannot import existing team because "opsgenie_team" resource "ignore_members" flag not working #445

Open
pieter-lautus opened this issue Jul 30, 2024 · 1 comment

Comments

@pieter-lautus
Copy link

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.

@pieter-lautus
Copy link
Author

Just to be clear, we want to continue managing the team memberships in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant