Such a simple thing, yet it seems impossible to do or search for... I just need to simply read file contents into a variable and create a list to for loop through.
file A
[
"0.0.0.0/0",
"8.8.8.8/32"
]
file B
[
"10.0.0.0/8",
"172.0.0.0/16"
]
terragrunt.hcl
locals {
priv_subnets = find_in_parent_folders("fileB")
pub_subnets = find_in_parent_folders("fileA")
all_subnets = concat(priv_subnets, pub_subnets)
}
...
for cidrs in local.all_subnets: ...
Seems to not be consuming the list correctly... what am I missing?
Thanks