This text demonstrates a pattern for using a single repository of Terraform code to manage multiple, completely independent environments that contain the same infrastructure.
It's based on simply overriding the terraform data and config files on each execution with:
$TF_DATA_DIR