如何在状态机中指定资源ARN(Amazon Resource Name)
How to specific the resource ARN (Amazon Resource Name) in the state machine
我按照本教程 (https://aws.amazon.com/blogs/machine-learning/analyzing-contact-center-calls-part-1-use-amazon-transcribe-and-amazon-comprehend-to-analyze-customer-sentiment/) 在 AWS 中使用状态机 (Step Functions) 创建工作流程,
本教程中的第 7 步讨论了“Invoke Step Functions”,他们提到我需要传递我不清楚的 lamdba 函数的 ARN
如何将此资源 ARN 作为参数传递?
谢谢,
哈利
您可以从 lambda 控制台获取 lambda ARN,然后按照 Step functions documentation 中提到的步骤进行操作。根据您的配置更改参数:
In the State machine definition pane, add the following state machine
definition using the ARN of the Lambda function that you created
earlier, for example:
{
"Comment": "A Hello World example of the Amazon States Language using an AWS Lambda function",
"StartAt": "HelloWorld",
"States": {
"HelloWorld": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:123456789012:function:HelloFunction",
"End": true
}
}
}
我按照本教程 (https://aws.amazon.com/blogs/machine-learning/analyzing-contact-center-calls-part-1-use-amazon-transcribe-and-amazon-comprehend-to-analyze-customer-sentiment/) 在 AWS 中使用状态机 (Step Functions) 创建工作流程,
本教程中的第 7 步讨论了“Invoke Step Functions”,他们提到我需要传递我不清楚的 lamdba 函数的 ARN
如何将此资源 ARN 作为参数传递?
谢谢,
哈利
您可以从 lambda 控制台获取 lambda ARN,然后按照 Step functions documentation 中提到的步骤进行操作。根据您的配置更改参数:
In the State machine definition pane, add the following state machine definition using the ARN of the Lambda function that you created earlier, for example:
{
"Comment": "A Hello World example of the Amazon States Language using an AWS Lambda function",
"StartAt": "HelloWorld",
"States": {
"HelloWorld": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:123456789012:function:HelloFunction",
"End": true
}
}
}