6 Building a multi-environment architecture

In Chapter 5 learned how to manage, share, and use Terraform’s remote state. We also saw some of the challenges involved in using that state. We’re going to combine that state knowledge with our previous learning about Terraform itself to create a multi-environment and multi-service architecture. Importantly, we’re also going to describe a workflow for developing and deploying Terraform infrastructure and changes to that infrastructure.

Terraform users will tell you that working out how to organize and lay out your code is crucial to having a usable Terraform environment. Inside our new architecture, we’re going to create new Terraform configuration in the form of an example data center. We’ll include ...

Get The Terraform Book 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.