Terraform setup
We will be using the infrastructure repo to store our infrastructure as code. I will go through the Terraform code in a little bit, but keep in mind we are using pre-commit
on this repo also. It will reformat, lint, and syntax check your Terraform code. I can’t stress enough how useful this is, and I wish more teams followed this approach.
Initial file setup
I’m going to shy away from repeating the exact same setup for each Python repo given, in this chapter, we will only have the base template created. Instead, I will walk through one repo and the infrastructure repo and explain the key files.
I create a visible tree of the folder structure I used in Windows. The majority of the work is done in Linux but here and there, I am switching to Windows:
tree /f
Schema repository
Here, we can see the basic folder structure. I have removed anything not committed or not useful to explain. One example might be pytest
cache folders. I will show...