opsgenie / terraform-provider-opsgenie

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

Not possible to import existing IncomingCall integration #358

Open plaes opened 1 year ago

plaes commented 1 year ago

Apparently it's not possible to import existing "IncomingCall" API integration.

cat oncall_phonenumber.tf

resource "opsgenie_api_integration" "oncall_phone_support" {
    name = "Call: Incoming call support line"
    type = "IncomingCall"

    enabled = true
}

Attempts to run the import fail:

$ terraform import opsgenie_api_integration.oncall_phone_support "$ID"
opsgenie_api_integration.oncall_phone_support: Importing from ID "$ID"...
opsgenie_api_integration.oncall_phone_support: Import prepared!
  Prepared opsgenie_api_integration for import
opsgenie_api_integration.oncall_phone_support: Refreshing state... [id=$ID]
│ Error: Error occurred with Status code: 403, Message: Create and update operations for type [IncomingCall is forbidden, Took: 0.027000, RequestId: ...

Terraform Version

Terraform v1.3.7
on darwin_arm64
+ provider registry.terraform.io/opsgenie/opsgenie v0.6.20

Affected Resource(s)