Difference between revisions of "Terraform conditional expressions"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
* <code>[[Terraform meta argument: count|count]]                = var.[[vpc_cidr_block]] != null ? 1 : 0</code>
 
* <code>[[Terraform meta argument: count|count]]                = var.[[vpc_cidr_block]] != null ? 1 : 0</code>
 +
 +
  [[retention_in_days]] = var.yourenv == "prod" ? 14 : 1
  
 
== Related ==
 
== Related ==

Revision as of 10:44, 24 February 2023

Advertising: