Skip to content

Commit 100544f

Browse files
committed
chore: move docs templates to platform module
1 parent 96e26b1 commit 100544f

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
terraform {
2+
source = "${get_repo_root()}//kit/foundation/docs"
3+
}
4+
5+
# note: we don't track any state for this module itself
6+
7+
locals {
8+
foundation_path = "${get_repo_root()}/foundations/name-of-foundation" #TODO: replace with the name of the foundation
9+
azure_platform = read_terragrunt_config("${local.foundation_path}/platforms/azure/platform.hcl")
10+
}
11+
12+
inputs = {
13+
# todo: refactor to eliminate duplication of this value
14+
# azure_tfstate_config_path = "${local.foundation_path}/platforms/azure/tfstates-config.yaml"
15+
16+
platforms = {
17+
azure = {
18+
aad_tenant_id = local.azure_platform.locals.platform.azure.aadTenantId,
19+
subscription_id = local.azure_platform.locals.platform.azure.subscriptionId,
20+
tfstateconfig = local.azure_platform.locals.tfstateconfig
21+
}
22+
}
23+
24+
foundation_dir = "${local.foundation_path}"
25+
template_dir = "${local.foundation_path}/docs/vuepress"
26+
output_dir = "${local.foundation_path}/.docs-v2"
27+
repo_dir = "${get_repo_root()}"
28+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)