Debian Codegraph @

tfconfig/testdata/for-expression/for-expression.tf

raw
1 variable "log_categories" {
2 default = ["one", "two", "three"]
3 }
4 variable "enabled" {
5 default = true
6 }
7 variable "retention_days" {
8 default = 7
9 }
10
11 locals {
12 logs = {
13 for category in var.log_categories :
14 category => {
15 enabled = var.enabled
16 retention_days = var.retention_days
17 }
18 }
19 }