Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 590 Bytes

3.1.1. Global Terraform code.md

File metadata and controls

14 lines (11 loc) · 590 Bytes

Global Terraform code

Stacks allows you to define global Terraform code that's shared across all stacks.

This can be used for use cases like defining a common Terraform state backend template (see this), or iterating through a list of regions to define multiple instances of the same provider (see this).

Global Terraform code must be located in the stacks directory like this:

|-- environments/
`-- stacks/
   |-- ...
   `-- global.tf   # here

Any files named *.tf will work.