locals { config = yamldecode(file("${path.root}/../config.yaml")) } module "config" { source = "../modules/config" infra = local.config.infra buckets = try(local.config.buckets, {}) databases = try(local.config.databases, {}) services = try(local.config.services, {}) }