小编Jus*_*808的帖子

如何将 Route 53 设置为指向 Api Gateway

我正在编写一个 Cloudformation 配置文件来一次性创建一个网站。这包括创建 lambda 函数、创建 API 网关、设置 S3 存储桶、创建 Route 53 区域和记录。

迄今为止:

  • 创建 Lambda 函数及其角色(有效)
  • 创建 API Gateway 它的部署和它的角色(工作)
  • 创建 S3 存储桶及其策略(有效)
  • 为站点创建 Route 53 区域和 DNS 记录(有效)
  • 为 API Gateway 创建域(不知道我在做什么)

因此,domain.com可以毫无问题地提供 S3 存储桶中的文件。将 AWS URI 用于 API Gateway 可以https://trydsoonjc.execute-api.us-west-2.amazonaws.com/app/path/here毫无问题地工作。

我想要设置的是api.domain.com指向 API 网关以访问服务器的 API。

如何将 Route 53 连接到 API Gateway?

我现在的 Cloudformation 是这样的:

{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description" : "Website",

  "Parameters": {
    "DomainName": {
      "Type" : "String",
      "Description" : "The DNS name of …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services amazon-cloudformation amazon-api-gateway

13
推荐指数
1
解决办法
7768
查看次数