Skip to content

Feature Request: yamldecode() function #21453

@kinghuang

Description

@kinghuang

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions