无法将LEX僵尸程序导入另一个帐户

时间:2018-07-25 11:16:02

标签: amazon-web-services aws-lambda amazon-lex aws-lex

在导入从另一个帐户导出的Lex bot时出现此错误

Lex can't access the Lambda function arn:aws:lambda:us-east-1:account-id:function:LAMBDA_FUNC in the context of intent arn:aws:lex:us-east-1:account-id:intent:MYIntent:$LATEST. Check the resource based policy on the function and try your request again.

在阅读此https://docs.aws.amazon.com/lex/latest/dg/import-from-lex.html之后,我尝试将内联策略附加到IAM用户,像这样。

{
"Version": "2012-10-17",
"Statement": [
    {
        "Effect": "Allow",
        "Action": [
            "lex:GetBot",
            "lex:PutBot",
            "lex:GetIntent",
            "lex:PutIntent",
            "lex:GetSlotType",
            "lex:PutSlotType",
         ],   
        "Resource": [
            "Arn:aws:lex:us-east-1:account-id:bot:MYBOT:*”
        ]
    }
]

}

但仍然无法正常工作。你能帮助我吗?我在这里想念什么?

0 个答案:

没有答案