當創建經由API/CLI創建一個EmrCluster一個數據流水線,我可以指定使用陣列結構中的多個步驟:是否可以通過Cloudformation在AWS datapipeline中創建數組管道對象?
{ "objects" : [
{ "id" : "myEmrCluster",
"terminateAfter" : "1 hours",
"schedule" : {"ref":"theSchedule"}
"step" : ["some.jar,-param1,val1", "someOther.jar,-foo,bar"] },
{ "id" : "theSchedule", "period":"1 days" }
] }
我可以調用put-pipeline-definition
引用上述文件以創建數爲EMR步驟簇。
現在,如果我想使用CloudFormation創建管道,我可以使用資源類型AWS::DataPipeline::Pipeline
中的PipelineObjects
屬性來配置管道。但是,管道對象只能是StringValue
或RefValue
。我如何創建一個數組管道對象字段?
這裏的一個相應cloudformation模板:
"Resources" : {
"MyEMRCluster" : {
"Type" : "AWS::DataPipeline::Pipeline",
"Properties" : {
"Name" : "MyETLJobs",
"Activate" : "true",
"PipelineObjects" : [
{
"Id" : "myEmrCluster",
"Fields" : [
{ "Key" : "terminateAfter","StringValue":"1 hours" },
{ "Key" : "schedule","RefValue" : "theSchedule" },
{ "Key" : "step","StringValue" : "some.jar,-param1,val1" }
]
},
{
"Id" : "theSchedule",
"Fields" : [
{ "Key" : "period","StringValue":"1 days" }
]
}
]
}
}
}
利用上述模板,step
是StringValue
,等同於:
"step" : "some.jar,-param1,val1"
,而不是象所希望的配置的陣列。
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datapipeline-pipeline-pipelineobjects-fields.html只顯示StringValue
和RefValue
是有效的鍵 - 是否有可能通過CloudFormation創建一個步驟數組?
在此先感謝。