Difference between revisions of "Terraform conditional expressions"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
  
 
   [[retention_in_days]] = var.yourenv == "prod" ? 14 : 1
 
   [[retention_in_days]] = var.yourenv == "prod" ? 14 : 1
 +
 +
 +
count = var.env == "prod" ? 1 : 0
  
 
== Related ==
 
== Related ==

Revision as of 15:36, 19 April 2023

Advertising: