Appendix A. Running examples

The examples in this book use Python to create a JSON configuration file for you to run with HashiCorp Terraform. This appendix provides guidance on running the examples. Why bother with this manual two-step process of generating the JSON file using Python and then creating the resources using Terraform?

First, I want to ensure that anyone who wants to run the examples but cannot use Google Cloud Platform (GCP) has an opportunity to examine them further. This allows for “local” development and testing and optionally creating live infrastructure resources.

Second, JSON files have a lot of content! They turned out quite verbose in code listings. A Python wrapper allows me to provide examples of the patterns without ...

Get Infrastructure as Code, Patterns and Practices 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.