谁能解释如何通过 AWS Lambda 执行使用源参数多次激活 AWS Data Pipeline。
目前,第一个处理激活管道,但随后任何后续激活都会失败,有或没有消息(取决于激活参数)
完整的处理循环是将数据移动到 S3,然后启动 DataPipeline 将数据迁移到 Redshift。
Example 1: aws datapipeline activate-pipeline --pipeline-id {pipelineid}
Accepts command but will not execute on previously run pipeline
Example 2: aws datapipeline activate-pipeline --pipeline-id {pipelineid} --end-timestamp, 2015-07-08T00:00:00Z
Error: Unknown options: --end-timestamp, 2015-07-08T00:00:00Z
Example 3: aws datapipeline activate-pipeline --pipeline-id {pipelineid} --start-timestamp, 2015-07-08T00:00:00Z
A client error (InvalidRequestException) occured when calling the ActivatePipeline operation: startTimestamp shoudl not be later than any Schedule EndDateTime in the pipeline)
此摘录摘自 AWS 文档:
要激活已完成的管道,请修改管道的结束日期,然后将其激活。