Difference between revisions of "Terraform expression: for"
Jump to navigation
Jump to search
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <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== | ||
+ | * <code>[[for_each]]</code> | ||
+ | * <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: