twilio / terraform-provider-twilio

Terraform Twilio provider
MIT License
63 stars 13 forks source link

fix: add phone_number_sid to import #132

Open salah93 opened 1 year ago

salah93 commented 1 year ago

https://github.com/twilio/terraform-provider-twilio/blob/main/twilio/resources/messaging/v1/README.md#twilio_messaging_services_phone_numbers_v1

qrnik commented 7 months ago

@childish-sambino any chance to get it merged? importing twilio_messaging_services_phone_numbers_v1 resource results in its replacement:

  # twilio_messaging_services_phone_numbers_v1.number must be replaced
  # (imported from "MGXXXX/PNXXX")
  # Warning: this will destroy the imported resource
-/+ resource "twilio_messaging_services_phone_numbers_v1" "number" {
      ~ id               = "MGXXX/PNXXX" -> (known after apply)
      + phone_number_sid = "PNXXX" # forces replacement
        service_sid      = "MGXXX"
      ~ sid              = "PNXXX" -> (known after apply)
    }