twilio / terraform-provider-twilio

Terraform Twilio provider
MIT License
62 stars 14 forks source link

Circular reference when creating a BYOC trunk with a sip domain as both "from" and termination domain #122

Open russell-wave opened 1 year ago

russell-wave commented 1 year ago

Issue Summary

Circular reference when creating a BYOC trunk with a sip domain as both "from" and termination domain

Steps to Reproduce

  1. create a terraform file with the resources below

Code Snippet

resource "twilio_voice_byoc_trunks_v1" "my_byoc" {
    from_domain_sid = twilio_api_accounts_sip_domains.my_sip_domain.sid
}

resource "twilio_api_accounts_sip_domains" "my_sip_domain" {
  domain_name = "myexample.sip.twilio.com"
  byoc_trunk_sid = twilio_voice_byoc_trunks_v1.my_byoc.sid
}

Exception/Log

Error: Cycle ... 

Technical details:

Ran into this today, it's something that is completely possible to do from the UI but not from terraform.

I was hoping that there would be a work-around of having separate "from" and "termination" domains but this doesn't seem to be possible either at the moment which makes it afik impossible to configure the from domain with terraform

childish-sambino commented 1 year ago

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog (ref: DI-1325).