Deploying GKE Using Public Modules

In Chapter 4, Writing Reusable Code Using Modules, we introduced modules and public registries. In this chapter, we will learn how to effectively use modules from the public Terraform Registry to build a complete architecture. We will see how we can deploy complex architectures quickly by utilizing public modules. In particular, we use two of the most popular Google Cloud modules from the Terraform Registry – the network and kubernetes-engine modules.

In this chapter, we will learn how to use modules from the public registry and use Terraform workspaces to provision two independent environments by doing the following:

  • Developing a variable strategy
  • Provisioning a network using a public Terraform module

Get Terraform for Google Cloud Essential Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.