terraform.aws-baseline-infra/modules/global-variables/README.md

28 lines
605 B
Markdown
Raw Normal View History

2021-01-26 21:40:02 +08:00
# 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 |