【问题标题】:Can use script arguments with ScriptUri in aws ShellCommandActivity可以在 aws ShellCommandActivity 中将脚本参数与 ScriptUri 一起使用
【发布时间】:2018-12-18 03:48:41
【问题描述】:

我有一个用例,我需要将脚本参数传递给BASH 脚本,如ShellCommandActivityscriptUri 中指定的那样。 AWS 文档 here 提到 The scriptArgument can only be used with command; Using it with scriptUri causes an error.

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

【问题讨论】:

    标签: amazon-web-services amazon-s3 amazon-data-pipeline


    【解决方案1】:

    是的,我们可以使用scriptUri 传递脚本参数,如下所示,它对我有用。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-06-27
      • 2017-11-02
      • 2021-10-15
      • 2016-02-28
      • 2018-01-22
      • 2018-11-24
      • 2022-12-16
      相关资源
      最近更新 更多