Conditions

  • For CloudFormation to specify a condition.
  • Condition can refer eachother
  • For example, check if the EnvType equals to prod
Conditions:
	CreateProdResource: !Equals [!Ref EnvType, prod]
  • Some of the logical functions
    • Fn::And
    • Fn::Equals
    • Fn::If
    • Fn::Not
    • Fn::Or