config

cloudposse/config/yaml

Terraform Module HCL YAML

Terraform module to convert local and remote YAML configuration templates into Terraform lists and maps

Install
module "config" {
source = "cloudposse/config/yaml"
version = "1.0.2"
}
plain text: /constructs/tfmod-cloudposse-config-yaml/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-yaml-config ![Latest Release](https://github.com/cloudposse/terraform-yaml-config/releases/latest) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) Terraform module to convert local and remote YAML configuration templates into Terraform lists and maps. --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source Modules][terraform_modules] It's 100% Open Source and licensed under the APACHE2. We literally have [hundreds of terraform modules][terraform_modules] that are Open Source and well-maintained. Check them out!

Inputs (29)
NameTypeDescriptionDefault
list_config_local_base_pathstringBase path to local YAML configuration files of list type""
list_config_remote_base_pathstringBase path to remote YAML configuration files of list type""
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
map_config_local_base_pathstringBase path to local YAML configuration files of map type""
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
list_config_pathslist(string)Paths to YAML configuration files of list type[]
remote_config_selectorstringString to detect local vs. remote config paths"://"
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
map_configsanyList of existing configurations of map type. Deep-merging of the existing map co[]
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
Outputs (4)
list_configs — Terraform lists from YAML configurations
all_imports_list — List of all imported YAML configurations
all_imports_map — Map of all imported YAML configurations
map_configs — Terraform maps from YAML configurations
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.2
Cloud YAML
★ Stars83
Forks28
Total downloads12.0M
Inputs29
Outputs4
Examples3
Submodules3
LicenseApache-2.0
Namespacecloudposse
Updated