As of Terraform v0.12.2 there is a native function
yamldecode
that obsoletes the plugin. No further development and/or support is planned for this repo. Feel free to open an issue if you have development ideas related to YAML processing that were not included into Terraform core.
This provider defines a Terraform data sources that can consume YAML input [as a string] and covert it into another format that can be used with Terraform.
Please note that JSON is subset of YAML and therefore this data source can be used to parse arbitrary JSON as well.
As of Terraform 0.12 it's trivial to process YAML documents of arbitrary complexity with
data "yaml_to_json"
and jsondecode
.
- data "yaml_to_json" - converts YAML to JSON for processing with
jsondecode
. - data "yaml_map_of_strings" - parse a YAML map as a map of string keys and values.
- data "yaml_list_of_strings" - parse a YAML list as a list of strings.
Terraform automatically discovers the Providers when it parses configuration files. This only occurs when the init command is executed.
Currently Terraform is able to automatically download only official plugins distributed by HashiCorp.
All other plugins should be installed manually.
Terraform will search for matching Providers via a Discovery process, including the current local directory.
This means that the plugin should either be placed into current working directory where Terraform will be executed from or it can be installed system-wide.
The simplest way to get started is:
wget "https://github.com/ashald/terraform-provider-yaml/releases/download/v2.1.0/terraform-provider-yaml_v2.1.0-$(uname -s | tr '[:upper:]' '[:lower:]')-amd64"
chmod +x ./terraform-provider-yaml*
Provider is written and maintained by Borys Pierov. Contributions are welcome and should follow development guidelines. All contributors are honored in CONTRIBUTORS.md.
This is free and unencumbered software released into the public domain. See LICENSE