Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/tulip/terraform-provider-twilio

Terraform provider to allocate and configure local phone numbers on twilio
https://github.com/tulip/terraform-provider-twilio

terraform terraform-provider twilio

Last synced: 17 days ago
JSON representation

Terraform provider to allocate and configure local phone numbers on twilio

Lists

README

        

# Twilio Provider

The provider configuration block accepts the following arguments:

* ``account_sid`` - (Required) Your SID (application ID) for the the Twilio API. May alternatively be set via the
``TWILIO_SID`` environment variable.

* ``auth_token`` - (Required) The API auth token to use when making requests. May alternatively
be set via the ``TWILIO_AUTH_TOKEN`` environment variable.

## Phone number resource

Does a search for available phone number via the Local API described here: https://www.twilio.com/docs/api/rest/available-phone-numbers and then purchases it

optional ["Advanced Filters"](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-advanced-filters) are nested under `location` block. (and `In`s are dropped)

Purchase, update, and delete API here:
https://www.twilio.com/docs/api/rest/incoming-phone-numbers

Arguments mostly follow those documented there with snake case instead of CamelCase (though with `name` instead of `FriendlyName`).

TL;DR read the [schema](https://github.com/tulip/terraform-provider-twilio/blob/master/resource_phonenumber_schema.go)

### Example Usage

```terraform
provider "twilio" {
account_sid = "ASdiid03kjj40304mmd03043893434id"
auth_token = "abcd1234"
}

resource "twilio_phonenumber" "mexico" {
iso_country_code = "MX"
}

resource "twilio_phonenumber" "boston" {
name = "boston reserved"

location {
near_lat_long {
longitude = 42.3755210
latitude = -71.0932520
}
}
}

resource "twilio_phonenumber" "virginia" {
name = "Virginia"

location {
region = "VA"
}

sms_method = "POST"
sms_url = "https://example.com/smsEndpoint"
}

```
## Contributing

How to submit changes:

1. Fork this repository.
2. Make your changes.
3. Email us at [email protected] to sign a CLA.
4. Submit a pull request.

## Who's Behind It

terraform-provider-twilio is maintained by Tulip. We're an MIT startup located in Boston, helping enterprises manage, understand, and improve their manufacturing operations. We bring our customers modern web-native user experiences to the challenging world of manufacturing, currently dominated by ancient enterprise IT technology. We work on Meteor web apps, embedded software, computer vision, and anything else we can use to introduce digital transformation to the world of manufacturing. If these sound like interesting problems to you, [we should talk](mailto:[email protected]).

## License

terraform-provider-twilio is licensed under the [Apache Public License](LICENSE).