AWS API 网关的子域
我目前正在 AWS 中从事一个客户项目。我们有一个带有 AWS Lambda 和 API Gateway 的 REST API。前端可通过 Cloudfront 访问并存储在 S3 中。
API 应在 api.client.com 下可用,前端应在 admin.client.com 下可用。
我的问题是客户端的域托管在外部,并且没有在 Route53 中完全管理。 有没有办法在 Route53 中创建子域(api 和 admin),以便在指向 API 网关/Cloudfront 的外部 DNS 中创建 A 记录?
I'm currently working on a client project in AWS. We have a REST API with AWS Lambda and API Gateway. The frontend is available via Cloudfront and stored in an S3.
The API should be available under api.client.com and the frontend under admin.client.com.
My problem is that the client's domain is hosted externally and not fully managed in Route53.
Is there a way to get create subdomains (api and admin) in Route53 oder to create an A-Record in the external DNS pointing to API Gateway / Cloudfront?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说的是,您应该在您的帐户中创建一个名为任意名称的 domina,并让 A 记录指向 API 网关和 Cloudfront。
这些 A 记录是您通过 cname 记录从主域指向的。
所以在主域中你有:
api.client.com CNAME api.yourR53domain.com
admin.client.com CNAME admin.yourR53domain.com
在 R53 中:
api.yourR53domain.com A(您的 api 网关端点)
admin.yourR53domain.com A(您的前端端点)
I would say that you should create a domina named anything in your account and have A records pointing to the API Gateway and the Cloudfront.
These A records you point to from the main domain with cname records.
So in the main domain you have:
api.client.com CNAME api.yourR53domain.com
admin.client.com CNAME admin.yourR53domain.com
In R53:
api.yourR53domain.com A (your api gateway endpoint)
admin.yourR53domain.com A (your frontend endpoint)