Difference between revisions of "Terraform expression: for"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  
  
[for s in var.list : upper(s)]
+
<code>[for s in var.list : upper(s)]</code>
 +
 
 +
<code>[[cidr_blocks]]      = [for s in [[data.aws_subnet]].[[all_public]] : s.cidr_block]</code>
  
 
== Related==
 
== Related==
[[for_each]]
+
* <code>[[for_each]]</code>
[[for]]
+
* <code>[[for]]</code>
 +
* <code>[[all_private]]</code>
 +
* [[Security Groups]]
  
 
== See also ==
 
== See also ==
* {{Terraform}}
+
* {{Terraform expressions}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 06:55, 8 March 2023


[for s in var.list : upper(s)]

cidr_blocks = [for s in data.aws_subnet.all_public : s.cidr_block]

Related[edit]

See also[edit]

Advertising: