opsgenie / terraform-provider-opsgenie

Terraform OpsGenie provider
https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs
Mozilla Public License 2.0
103 stars 137 forks source link

Updating team_id for opsgenie_service does not trigger change #340

Open plaes opened 2 years ago

plaes commented 2 years ago

When changing the team_id of opsgenie_service, the change does not seem to get applied as next time you run plan, it will still show that it needs to be changed.

Apparently this is due to the fact that official API seems to lack possibility to change the team: https://docs.opsgenie.com/docs/service-api#update-service

Terraform Version

terraform -v
Terraform v1.3.2
on darwin_arm64
+ provider registry.terraform.io/opsgenie/opsgenie v0.6.15

Affected Resource(s)

Please list the resources as a list, for example:

mlazzaro-better commented 7 months ago

We're still seeing this, with the same behavior: plan shows the team_id changing, applying shows "1 changed", but the team doesn't change, and the following plan shows the same diff.

Terraform v1.4.6
on linux_amd64
+ provider registry.terraform.io/opsgenie/opsgenie v0.6.35

We're working around this by tainting the opsgenie_service resource, which causes it to get deleted & recreated with the right team assigned as owner

oeuftete commented 2 months ago

Looks like the same as #216.