gpo / gpo-platform-configs

Infrastructure as Code for the GPO
MIT License
0 stars 0 forks source link

[WIP] restructure into multiple tf "compositions" #25

Open rsalmond opened 2 weeks ago

rsalmond commented 2 weeks ago

@IanEdington let's go over this in detail next time we meet, but for now here's a rough pass at prepping for stage/prod separation.

The basic idea is that the repo is structured into multiple TF projects that get applied in order.

  1. ./bootstrap -> initialize TF
  2. ./infra/root -> create singletons (eg. aws accounts)
  3. ./infra/stage -> create staging infra (vpc's, clusters, RDS instance)
  4. ./infra/prod -> duplicate of above
  5. ./app/stage -> creating staging app resources (databases, buckets)
  6. ./app/prod -> duplicate of above

Also brought all the repos I could infer into TF control and restructured the way they get labelled.