【发布时间】:2019-03-15 22:32:48
【问题描述】:
您可以通过 --arguments 参数将参数传递给 AWS Glue 作业(请参阅 here)。
CloudFormation documentation 说 DefaultArguments 是“UTF-8 字符串到 UTF-8 字符串键值对”并且它们的类型是“JSON 对象”。由于 YAML 是 JSON 的超集,我希望能够在 (YAML) CloudFormation 模板中传递这样的参数:
DefaultArguments:
"--arguments": {"--test_argument": "foo"}
但是,它会在 CloudFormation 部署期间引发此错误:
属性验证失败:[属性值 {/DefaultArguments/--arguments=} 与类型 {String} 不匹配]
如何正确指定值?
【问题讨论】:
标签: yaml amazon-cloudformation aws-glue