28 lines
605 B
Markdown
28 lines
605 B
Markdown
# 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 |
|
|
|