可以在 aws ShellCommandActivity 中使用带有 ScriptUri 的脚本参数
Can use script arguments with ScriptUri in aws ShellCommandActivity
我有一个用例,我需要将脚本参数传递给 BASH
脚本,如 ShellCommandActivity
的 scriptUri
中指定的那样。 AWS
文档 here 提到 The scriptArgument can only be used with command; Using it with scriptUri causes an error.
.
但是查看 SO post here 似乎是可行的,之前是否有其他人尝试过并为您工作?
是的,我们可以使用 scriptUri
传递脚本参数,如下所示,它对我有用。
scriptUri: "s3://location"
scriptArgument: ["%arg1%","%arg2%"]
我有一个用例,我需要将脚本参数传递给 BASH
脚本,如 ShellCommandActivity
的 scriptUri
中指定的那样。 AWS
文档 here 提到 The scriptArgument can only be used with command; Using it with scriptUri causes an error.
.
但是查看 SO post here 似乎是可行的,之前是否有其他人尝试过并为您工作?
是的,我们可以使用 scriptUri
传递脚本参数,如下所示,它对我有用。
scriptUri: "s3://location"
scriptArgument: ["%arg1%","%arg2%"]