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: 3 months ago
JSON representation
Terraform provider to allocate and configure local phone numbers on twilio
- Host: GitHub
- URL: https://github.com/tulip/terraform-provider-twilio
- Owner: tulip
- License: apache-2.0
- Created: 2016-04-23T02:50:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-04T22:07:51.000Z (about 7 years ago)
- Last Synced: 2024-06-21T03:08:28.023Z (5 months ago)
- Topics: terraform, terraform-provider, twilio
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 20
- Watchers: 45
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-twilio-golang - tulip/terraform-provider-twilio
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-numbersArguments 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"
}```
## ContributingHow 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).