Configuration files for environments.
This repo contains environment properties, Terraform TF_VARS and Ansible config files for an environment.
The repo contains top level directories named as per the environment name.
Each configuration constructs any local identifiers from a short list of variables (region, project, environment type, vpc CIDR, account ID) passed in. You should not leak derived values into the env_configs directory (see below)
Each environment has a pair of files - a <env_type>.properties file which sets up environment variables identifying the environment, and a <dev_name>.tfvars file which contains environment-specific variables.
Initially the Structure will be as follows and a new dir per env:
├── common
├── delius-core-dev
├── delius-core-playpit
├── delius-core-sandpit
├── delius-perf
├── delius-preprod
├── delius-prod
├── delius-stage
└── delius-test
Example below
├── common
│ ├── common.properties
│ └── common.tfvars
├── delius-core-dev
│ ├── delius-core-dev.credentials.yml
│ ├── delius-core-dev.properties
│ └── delius-core-dev.tfvars
├── delius-stage
│ ├── delius-stage.properties
│ └── delius-stage.tfvars
└── delius-test
├── delius-test.properties
└── delius-test.tfvars
While the repetition of the env name inside the directory looks redundant it is to ensure the file is easily identifiable when multiple files are open within an engineer's text editor.