You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says, essentially. I have a use case where I have a lot of numbers that I want to configure multiple phone numbers with a similar configuration. I was able to do this successfully, then I tainted one of the phone number configuration to force terraform to re-apply the same configuration to the phone number (this was my expectation).
When I ran terraform apply after the taint, the provider releases the number and then terraform fails because the provider was not able to re-purchase the number.
Steps to Reproduce
This is the first step
This is the second step
Further steps, etc.
Code Snippet
resource"twilio_api_accounts_incoming_phone_numbers""phone_number_1_of_20" {
path_account_sid=var.account_sidfriendly_name="foobar"phone_number="a phone number I purchased from Twilio"status_callback=local.service_status_handler_urlstatus_callback_method="POST"voice_url=local.service_call_handler_urlvoice_method="POST"
}
Exception/Log
╷
│ Error: Status: 400 - ApiError 21422: +_the_phone_number is not available. (null) More info: https://www.twilio.com/docs/errors/21422
│
│ with twilio_api_accounts_incoming_phone_numbers.resource,
│ on phone_number_configuration.tf line 13, in resource "twilio_api_accounts_incoming_phone_numbers" "resource":
│ 13: resource "twilio_api_accounts_incoming_phone_numbers" "resource" {
│
╵
Technical details:
terraform-provider-twilio version: 0.18.44
terraform version: 1.20
The text was updated successfully, but these errors were encountered:
anujc4
changed the title
"twilio_api_accounts_incoming_phone_numbers" should not release a number when tainting the resource
"twilio_api_accounts_incoming_phone_numbers" should not release a number when the resource is tainted
May 14, 2024
Issue Summary
As the title says, essentially. I have a use case where I have a lot of numbers that I want to configure multiple phone numbers with a similar configuration. I was able to do this successfully, then I tainted one of the phone number configuration to force terraform to re-apply the same configuration to the phone number (this was my expectation).
When I ran
terraform apply
after thetaint
, the provider releases the number and then terraform fails because the provider was not able to re-purchase the number.Steps to Reproduce
Code Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: