Search code examples
amazon-web-servicesamazon-s3amazon-data-pipeline

Can use script arguments with ScriptUri in aws ShellCommandActivity


I have a use case where I needed to pass in a script argument to a BASH script as specified in the scriptUri of the ShellCommandActivity. The AWS documentation here mentiones that The scriptArgument can only be used with command; Using it with scriptUri causes an error..

But looking at the SO post here it appears to be possible, has anyone else tried this before and got it working for you?


Solution

  • Yes, we could pass in script arguments with scriptUri as below and it worked for me.

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