1
0

initial commit

This commit is contained in:
xpk
2026-02-13 15:44:24 +08:00
parent 66be8224f4
commit 09ce4c881a
570 changed files with 61807 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# global-variables module
This module provides global variables that can be used in all layers
## Basic Usage
Variables are stored in a map in outputs.tf
```hcl
module "global-variables" {
source = "../../../../../../../../../terraform_modules_shared/global-variables"
}
// then retrieve global variable from the module. for example:
sys-sec-account = module.global-variables.vars.prod.sys-sec-acc
```
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
## Outputs
| Name | Description |
|------|-------------|
| vars | map of variables |
+18
View File
@@ -0,0 +1,18 @@
output vars {
value = {
"prod" = {
sys-log-acc = "174677273835"
sys-ss-acc = "827262612707"
stm-acc = "205233139210"
sys-sec-acc = "033205333431"
mp-acc = "616302076454"
}
"plike" = {
sys-log-acc = "870377016556"
sys-ss-acc = "022321612404"
stm-acc = "313794563353"
sys-sec-acc = "240016403383"
mp-acc = "684740086263"
}
}
}