-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathmain.tf
More file actions
19 lines (17 loc) · 589 Bytes
/
main.tf
File metadata and controls
19 lines (17 loc) · 589 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
data "utils_stack_config_yaml" "config" {
input = [for stack in var.stacks : format("%s/%s.yaml", var.stack_config_local_path, stack)]
process_stack_deps = var.stack_deps_processing_enabled
process_component_deps = var.component_deps_processing_enabled
}
locals {
decoded = [for i in data.utils_stack_config_yaml.config.output : yamldecode(i)]
config = [
for stack in local.decoded : {
imports = stack.imports,
components = {
helmfile = stack.components.helmfile,
terraform = stack.components.terraform
}
}
]
}