简体   繁体   English

从 NodeJS aws-sdk 成功调用 to.createInstance() 后,Amazon Connect 处于“CREATION_FAILED”状态

[英]Amazon Connect in “CREATION_FAILED” status after successful call to .createInstance() from NodeJS aws-sdk

When I run the following code from a Lambda Function:当我从 Lambda Function 运行以下代码时:

await connect.createInstance({
     InstanceAlias: 'my-connect-instance', 
     IdentityManagementType: 'CONNECT_MANAGED', 
     InboundCallsEnabled: true, 
     OutboundCallsEnabled: true}).promise();

I get back a response that looks like this:我收到如下回复:

{
    "Id": "fx5c4558-****-4742-n365-f817e7018752",
    "Arn": "arn:aws:connect:us-east-1:***********:instance/fx5c4558-****-4742-n365-f817e7018752"
}

So it seems like it has succeeded.所以看起来它已经成功了。 However, when I open up the AWS Console and check the Connect dashboard, I see this:但是,当我打开 AWS 控制台并检查 Connect 仪表板时,我看到了:

Instance Alias | Access Url | Channels     | Create Date | Status
-------------------------------------------------------------------------
Unknown        |            | No telephony | Unknown     | Create error

And if I run await connect.listInstances().promise() then I get back the following response:如果我运行await connect.listInstances().promise()那么我会得到以下响应:

{
    "InstanceSummaryList": [
        {
            "Id": "fx5c4558-****-4742-n365-f817e7018752",
            "Arn": "arn:aws:connect:us-east-1:************:instance/fx5c4558-****-4742-n365-f817e7018752",
            "IdentityManagementType": null,
            "InstanceAlias": null,
            "CreatedTime": null,
            "ServiceRole": null,
            "InstanceStatus": "CREATION_FAILED",
            "InboundCallsEnabled": null,
            "OutboundCallsEnabled": null
        }
    ]
}

What I've tried so far:到目前为止我已经尝试过:

  • deleted all previous instances, including instances that failed to be created删除所有以前的实例,包括创建失败的实例
  • tried using a different value for instance-alias尝试对 instance-alias 使用不同的值
  • tried leaving out optional values from the params (InstanceAlias)尝试从参数中省略可选值(InstanceAlias)
  • tried the same api call in a different region (us-west-2)在不同的区域(us-west-2)尝试了相同的 api 调用

If anyone has experience with the AWS SDK for NodeJS in relation to Amazon Connect and can see that I have done something incorrect or has any idea why the Connect instances are failing to be created, I would be extremely grateful if you could share help me resolve this.如果有人在与 Amazon Connect 相关的 NodeJS 的 AWS SDK 方面有经验,并且可以看到我做错了什么或知道为什么无法创建 Connect 实例,如果您能分享帮助我解决问题,我将不胜感激这个。

Just learned that this feature is in preview mode and if you update the aws-sdk version to v2.801, then the request works.刚刚了解到此功能处于预览模式,如果您将 aws-sdk 版本更新为 v2.801,则请求有效。

https://github.com/aws/aws-sdk-js/issues/3557 https://github.com/aws/aws-sdk-js/issues/3557

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM