首页 > 解决方案 > 可以在 aws ShellCommandActivity 中将脚本参数与 ScriptUri 一起使用

问题描述

我有一个用例,我需要将脚本参数BASH传递scriptUriShellCommandActivity. 这里AWS文档提到.The scriptArgument can only be used with command; Using it with scriptUri causes an error.

但是看看这里的 SO 帖子似乎是可能的,以前有没有其他人尝试过这个并让它为你工作?

标签: amazon-web-servicesamazon-s3amazon-data-pipeline

解决方案


是的,我们可以通过如下方式传递脚本参数,scriptUri它对我有用。

scriptUri: "s3://location"
scriptArgument: ["%arg1%","%arg2%"]

推荐阅读