I’m just wondering if anyone has advice around how best to have business logic interact with Terraform.
For example, let’s say you were building an on-premise server virtualization Terraform module. You need to select the gold image, network, and DNS domain used to provision the machine based on some customer inputs combined with some additional business logic.
Would it be best to implement that logic:
- completely outside of Terraform (just pass the desired information directly to Terraform)?
- with conditionals inside of a Terraform local value?
- with the External Data Source?
- by building a custom provider?