Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,177 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hmpps-env-configs

Configuration files for environments.

Purpose

This repo contains environment properties, Terraform TF_VARS and Ansible config files for an environment.

Structure

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.

Additional info

About

Environment configuration for AWS - Terraform and Ansible projects

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages