Custom Providers with Terraform

search share 加入 登录

Custom Providers with Terraform

1 个小时 15 分钟 9 个积分


Google Cloud Self-Paced Labs


In Terraform, a Provider is the logical abstraction of an upstream API. In this lab, you will learn how to build a custom provider for Terraform. Terraform supports a plugin model, and all providers are actually plugins. Plugins are distributed as Go binaries. Although technically possible to write a plugin in another language, almost all Terraform plugins are written in Go.


In this lab, you will build a custom provider for Terraform by:

  • Building the plugin
  • Defining resources
  • Invoking the provider
  • Learning about error handling and partial state
  • Implementing the destroy and read functions


For this lab, you should have experience with the following:

  • Familarity with Linux editor like nano, vi etc.

  • Familarity with Go programming language.

加入 Qwiklabs 即可阅读本实验的剩余内容…以及更多精彩内容!

  • 获取对“Google Cloud Console”的临时访问权限。
  • 200 多项实验,从入门级实验到高级实验,应有尽有。
  • 内容短小精悍,便于您按照自己的节奏进行学习。