How to write Terraform conditionals that read naturally and make your code easier to maintain.








Introduction



“The master debugger does not ask ‘What is missing?’ but ‘What is present?’”


I was tasked with refactoring an existing Terraform module. Simple enough, right? Wrong. I found myself staring at my monitor for god knows how...