Difference between revisions of "Terraform expression: for"
Jump to navigation
Jump to search
(5 intermediate revisions by 3 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== | == Related== | ||
* <code>[[for_each]]</code> | * <code>[[for_each]]</code> | ||
* <code>[[for]]</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: