Difference between revisions of "Terraform conditional expressions"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://www.terraform.io/docs/language/expressions/conditionals.html
 
* https://www.terraform.io/docs/language/expressions/conditionals.html
  
condition ? true_val : false_val
+
*<code>condition ? true_val : false_val</code>
  
 
+
*<code>[[count]]                = var.[[vpc_cidr_block]] != null ? 1 : 0</code>
  [[count]]                = var.[[vpc_cidr_block]] != null ? 1 : 0
 
  
 
== See also ==
 
== See also ==
 
* {{Terraform}}
 
* {{Terraform}}
 +
 +
[[Category:Terraform]]

Revision as of 10:10, 14 September 2021

Advertising: