I look everywhere, but can’t find an answer to this:
Say you have 3 envs, fonc, accp and production. You build a webapp, or vm in azure and all is fine for fonc and accp, but then comes production, which requires scaling since it’s prooduction, so the code that worked fine for fonc and accp cannot be used “as is” in production since the archiecture of the solution differ at that stage. I found no way to do a “if” in terraform(if production = 1 then run webapp_prod which include redundancy and scaling)
Anyone can point me toward an article, tutorial, best practice where a solution to this is described?