YamlToIon​Yaml​To​Ion

Convert a YAML file into ION.

Converts YAML documents into Amazon Ion. Each YAML document becomes one Ion value.

yaml
type: "io.kestra.plugin.serdes.yaml.YamlToIon"

Convert YAML to Ion

yaml
id: yaml_to_ion
namespace: company.team

tasks:
  - id: write_yaml
    type: io.kestra.plugin.core.storage.Write
    extension: yaml
    content: |
      ---
      id: 1
      name: Apple
      price: 1.2
      ---
      id: 2
      name: Banana
      price: 0.9

  - id: convert
    type: io.kestra.plugin.serdes.yaml.YamlToIon
    from: "{{ outputs.write_yaml.uri }}"
Properties

Source file URI

Default UTF-8

The name of a supported charset

Format uri

URI of the output file

Number of YAML documents converted