Current Terraform Version
Terraform v0.12.0
+ provider.yaml v2.1.0-linux-amd64
Use-cases
Terraform 0.12 introduces a jsondecode() function, which interprets a given string as JSON. I often deal with data in YAML format. It would be really handy to have a yamldecode() function.
Attempted Solutions
The latest version of terraform-provider-yaml adds a new data source named yaml_to_json that is meant to be used with jsondecode in Terraform 0.12. It can be used to load YAML data in Terraform.
terraform-provider-yaml 2.1.0 - 2019-05-25
Proposal
Terraform should natively provide a yamldecode() function, similar to the jsondecode() function.
References
N/A
Current Terraform Version
Use-cases
Terraform 0.12 introduces a jsondecode() function, which interprets a given string as JSON. I often deal with data in YAML format. It would be really handy to have a yamldecode() function.
Attempted Solutions
The latest version of terraform-provider-yaml adds a new data source named
yaml_to_jsonthat is meant to be used withjsondecodein Terraform 0.12. It can be used to load YAML data in Terraform.terraform-provider-yaml 2.1.0 - 2019-05-25
Proposal
Terraform should natively provide a
yamldecode()function, similar to thejsondecode()function.References
N/A