Separate terraform configs by environment
On several occasions we've encountered issues while making changes in one environment that we do not want propagated immediately to subsequent environments. With the previous configuration using symlinks, while it kept things DRY, it also resulted in situations where we overused and misused the
-target option during
apply stages, and resulted in configuration drift and errors.
This change fully reverts that model, so that all environments are completely self-contained. We will have to duplicate more code, but there are other measures we can take to minimize that effect through the use of modules and setting values in
.tfvars files rather than customizing per-environment defaults in
variables.tf. For now, though, we are just setting the stage for further iterative improvements.