Config Roots and Environments
Last updated
Last updated
In Resourcely, a Config Root is a directory containing one or more Terraform files. Most config roots are applyable - a directory where you would run terraform apply
.
Not all Config Roots are applyable - some are modules. These directories contain reusable Terraform config that applyable Config Roots can invoke. Support for module config roots is coming soon.
Before creating a pull request, Resourcely allows users to select which config root the pull request will add Terraform to.
Administrators define Config Roots (and their Environments) via resourcely.yaml.
Terraform makes it easy to provision similar copies of infrastructure, one per Environment ("dev" and "prod", for example). Environments are also called "Stacks" or "Stages" in other products.
When creating a pull requestΒ in a Config Root that has Environments, users can click the ENV button to supply environment-specific values for most form fields. Resourcely uses Terraform variables to represent these values - see below for an example.
Not all form fields support environment-specific values - it depends on how they are used within the Blueprint.
Given a blueprint like this:
Resourcely would produce Terraform like this: