Difference between revisions of "Terraform conditional expressions"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
* <code>condition ? true_val : false_val</code>
 
* <code>condition ? true_val : false_val</code>
  
* <code>[[count]]                = var.[[vpc_cidr_block]] != null ? 1 : 0</code>
+
* <code>[[Terraform meta argument: count|count]]                = var.[[vpc_cidr_block]] != null ? 1 : 0</code>
  
 
== Related ==
 
== Related ==

Revision as of 06:41, 14 February 2023

Advertising: