【发布时间】:2020-11-02 18:15:53
【问题描述】:
我使用 aws WebSocket api 创建了一个消息传递应用程序,并使用无服务器进行了部署。
API 已成功部署,我可以使用 wscat 测试这些 API。我在堆栈中也有其他 Rest api。我尝试将我的新 WebSocket api 堆栈映射到现有域名,但收到错误:Only REGIONAL domain names can be managed through the API Gateway V2 API. For EDGE domain names, please use the API Gateway V1 API. Also note that only REST APIs can be attached to EDGE domain names.
我被困住并试图弄清楚要进行哪些更改。
我浏览了https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html 和https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html,但无法弄清楚。
【问题讨论】:
标签: amazon-web-services websocket aws-api-gateway serverless-framework