无服务器 - 使用预生成的API网关URL?
我是否可以为我的无服务器应用程序定义预生成的API网关URL?
当前,已经制作了两个应用程序,它们是由云形成产生的。新应用程序正在使用无服务器框架。
客户要求我重复使用我的其他两个应用程序生成的一个,以扩展拥有自己的URL的端点数量。
这不是使用CNAME的自定义URL,只是他们希望我退出的直发API网关。
Am I able to define a pre-generated api gateway url for my serverless application?
Currently there are two applications already made that has their own that was generated with cloud formation. The new application is using the serverless framework.
The client asked that I reuse the one that was generated for the other two applications on mine to extend the amount of endpoints over having its own url.
It’s not a custom url that uses a cname just a straight generated api gateway one they would like me to piggy back off of.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可悲的是,您无法使用AWS提供的URL来做到这一点。在单个URL域下加入多个API的唯一方法是使用自定义域。然后,您可以将多个API连接到一个域,例如
api.mydomain.org
,api2.mydomain.org
。Sadly you can't do that with AWS-provided URLs. The only way to join several APIs under a single URL domain is to use custom domains. Then you can hook up multiple APIs to one domain, e.g.
api.mydomain.org
,api2.mydomain.org
.