yaml-variables

0x022b/yaml-variables/local

Terraform Module HCL LOCAL

Terraform module to load variables from a YAML file on local filesystem

Install
module "yaml-variables" {
source = "0x022b/yaml-variables/local"
version = "1.0.1"
}
plain text: /constructs/tfmod-0x022b-yaml-variables-local/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Local YAML Variables Terraform module to load variables from a YAML file on local filesystem. Usage example my-variables.yaml ``yaml count: 3 instance_type: t2.micro ` main.tf `hcl module "yaml" { source = "0x022b/yaml-variables/local" version = "~> 1.0" filename = "./my-variables.yaml" } resource "aws_instance" "cluster" { count = module.yaml.variables.count instance_type = module.yaml.variables.instance_type # ... } `` Inputs Name | Description ----------|------------- filename | Name of the variable file including its file extension. Outputs Name | Description ----------|------------- variables | Variables that were defined in the input file. License MIT

Inputs (1)
NameTypeDescriptionDefault
filenamestringName of the variable file including its file extension. required
Outputs (1)
variables — Contents of the variable file.
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud LOCAL
★ Stars0
Forks0
Total downloads3.1k
Inputs1
Outputs1
LicenseMIT
Namespace0x022b
Updated