Difference between revisions of "Terraform expression: for"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
<code>[for s in var.list : upper(s)]</code>
 
<code>[for s in var.list : upper(s)]</code>
  
<code>[[cidr_blocks]]      = [for s in [[data.aws_subnet]].all_public : s.cidr_block]</code>
+
<code>[[cidr_blocks]]      = [for s in [[data.aws_subnet]].[[all_public]] : s.cidr_block]</code>
  
 
== Related==
 
== Related==

Revision as of 09:25, 23 February 2023

Advertising: