Nested lists in yaml

后端 未结 3 948
隐瞒了意图╮
隐瞒了意图╮ 2021-01-03 19:28

How can I create nested lists in YAML? I want to get:

 {\"Hello\": [\"as\", [\"http://\", [\"cat\"]]]}

Here\'s my YAML that doesn\'t work (

3条回答
  •  花落未央
    2021-01-03 19:45

    And the answer is:

    URL:
      Description: URL of the website
      Value:
        "Fn::Join":
          - ""
          - - "http://"
            - "Fn::GetAtt":
                - ElasticLoadBalancer
                - DNSName
    

    (see http://pyyaml.org/wiki/PyYAMLDocumentation#YAMLsyntax - "block sequences can be nested")

提交回复
热议问题