我正在编写一个 Cloudformation 配置文件来一次性创建一个网站。这包括创建 lambda 函数、创建 API 网关、设置 S3 存储桶、创建 Route 53 区域和记录。
迄今为止:
因此,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