terraform conditionals

terrafrom在使用的时候需要有需要判断来赋值,例如:  

  就是根据env来确定需要几台机器,如果是prod , 就是2 ,如果不是,就是1