mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-05 18:31:00 +03:00
32 lines
1013 B
HCL
32 lines
1013 B
HCL
include "root" {
|
|
path = find_in_parent_folders()
|
|
}
|
|
|
|
include "env" {
|
|
path = find_in_parent_folders("env.hcl")
|
|
expose = true
|
|
merge_strategy = "deep"
|
|
}
|
|
|
|
locals {
|
|
repo_root = try(get_repo_root(), "${get_terragrunt_dir()}/../../..")
|
|
infra_config = yamldecode(file("${local.repo_root}/infrastructure.yaml"))
|
|
env_name = basename(dirname(get_terragrunt_dir()))
|
|
env_config = local.infra_config.environments[local.env_name]
|
|
}
|
|
|
|
terraform {
|
|
source = "${get_terragrunt_dir()}/../../../modules//yc-valkey-user"
|
|
}
|
|
|
|
inputs = {
|
|
valkey_users = try(local.env_config.valkey_users, [])
|
|
|
|
yc_token = get_env("YC_TOKEN", "")
|
|
yc_service_account_key_file = get_env("YC_SERVICE_ACCOUNT_KEY_FILE", "")
|
|
yc_cloud_id = get_env("YC_CLOUD_ID", "")
|
|
yc_folder_id = get_env("YC_PROD_FOLDER_ID", get_env("YC_FOLDER_ID", ""))
|
|
kubeconfig_path = get_env("KUBECONFIG", "")
|
|
kube_context = get_env("KUBE_CONTEXT", "")
|
|
}
|