Amazon web services 无法从使用startExecution设置的步骤函数输入传递粘合作业参数
我试图通过参数从步骤函数中粘合作业,但变量没有得到解析。这是我的密码。 我的状态机中只有一个步骤,如下所示Amazon web services 无法从使用startExecution设置的步骤函数输入传递粘合作业参数,amazon-web-services,aws-lambda,aws-glue,aws-step-functions,Amazon Web Services,Aws Lambda,Aws Glue,Aws Step Functions,我试图通过参数从步骤函数中粘合作业,但变量没有得到解析。这是我的密码。 我的状态机中只有一个步骤,如下所示 { "Comment": "Test Function", "StartAt": "StartGlueJob", "States": { "StartGlueJob": { "Type": "Task"
{
"Comment": "Test Function",
"StartAt": "StartGlueJob",
"States": {
"StartGlueJob": {
"Type": "Task",
"Resource": "arn:aws:states:::glue:startJobRun.sync",
"Parameters": {
"JobName": "my-job-name",
"Arguments": {
"--output": "$.outputpath"
}
},
"End": true
}
}
}
我使用boto3从Lambda调用step函数,代码如下:
stepclient.start_execution(
stateMachineArn='arn:aws:states:XXXX:XXXX:stateMachine:MyStateMachine',
name=funcation_name,
input="{\"outputpath\": \"new-sr-out\"}"
)
我想传递的值是-,从lambda到glue job的所有输出。但是,价值并没有得到解决
请让我知道我哪里做错了。如果要在
参数中使用JsonPath
,则密钥需要以$
结尾
请参阅ASL规范中关于有效负载模板的部分: