Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Writing your own Terraform provider

Writing your own Terraform provider

Terraform's documentation on how to write a Terraform provider might be a little daunting in the beginning (mostly because the lack of it) and even confusing if you try to read the source of some of the existing providers if you want to use them as a starting point.
On this talk I walk you through the basics on how to get started writing your own provider and also I talk about some pitfalls that I fell into while developing mine.

mongrelion

April 07, 2016
Tweet

More Decks by mongrelion

Other Decks in Programming

Transcript

  1. container-solutions.com | @containersoluti Assumptions 3 ❖ You already know what

    Terraform is ❖ You have already used it either briefly or intensely ❖ You know how a little bit of Go
  2. container-solutions.com | @containersoluti • Github • Google Cloud • Heroku

    • InfluxDB • Mailgun • MySQL • OpenStack • Packet • PostgreSQL • PowerDNS • Rundeck • StatusCake • Template • Terraform • TLS • Atlas • AWS • Azure (Service Management) • Azure (Resource Manager) • Chef • CenturyLinkCloud • CloudFlare • CloudStack • Consul • Datadog • DigitalOcean • DNSMadeEasy • DNSimple • Docker • Dyn Current list of providers 4 • Triton • UltraDNS • VMware vCloud Director • VMware vSphere
  3. container-solutions.com | @containersoluti Resources 2 0 Anotated-source style blog post

    on how to write your own Terraform provider https://container-solutions.com/write-terraform-provider-part-1/ Template for bootstrapping Terraform providers: https://github.com/ContainerSolutions/terraform- provider-template/blob/v0.1.1 Terraform’s built-in providers https://github.com/hashicorp/terraform/tree/v0.6.14/builtin/providers