Amazon Data Pipeline: How to use a script argument in a SqlActivity?

后端 未结 3 736
温柔的废话
温柔的废话 2020-12-30 12:10

When trying to use a Script Argument in the sqlActivity:

 {
\"id\" : \"ActivityId_3zboU\",
  \"schedule\" : { \"ref\" : \"DefaultSchedule\" },
  \"scriptUri\         


        
3条回答
  •  情书的邮戳
    2020-12-30 12:29

    in shellcommand activity we specify two scriptArguments to acces using $1 $2 in shell script(.sh)

    "scriptArgument" : "'s3://location_of_unload/#format(minusDays(@scheduledStartTime,1),'YYYY/MM/dd/hhmm/')}'", # can be accesed using $1 "scriptArgument" : "'aws_access_key_id=????;aws_secret_access_key=*******'" # can be accesed using $2

    I dont know will this work for you.

提交回复
热议问题