3 Building an application stack with Terraform

In the last chapter we installed Terraform and got a crash course in the basics of creating, managing, and destroying infrastructure. We learned about Terraform configuration files and the basics of Terraform syntax.

In this chapter we’re going to build a more complex infrastructure: a multi-tier web application. We’re going to use this exercise to learn more about Terraform configuration syntax and structure.

3.1 Our application stack

We’re going to build a two-tier web application stack. We’re going to build this stack in Amazon Web Services (AWS) in an Amazon VPC environment. We’ll create that VPC and the supporting infrastructure as well as the stack itself. The stack will be made up of two ...

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.