July 2017
Beginner to intermediate
358 pages
10h 54m
English
The main entry point for our application is the terraform.tf file. There is no stipulation on this filename; Terraform is graph-based. It recurses through all files that end in .tf in our directory and builds up a dependency graph. It does this to understand the order to create resources.
If we look at this file, we see that it is made up of modules. Modules are a way for Terraform to create reusable sections of infrastructure code or just to logically separate things for readability. They are very similar to the concepts of packages in Go:
module "vpc" { source = "./vpc" namespace = "bog-chapter11" } module "s3" { source = "./s3" application_name = "chapter11" } module "nats" { source = "./nats" application_name ...Read now
Unlock full access