首页 > 解决方案 > 如何使用 cloudformation 构建 Route53 路由资源?

问题描述

我正在使用 cloudformation 模板中的 AWS::Route53::RecordSet 资源构建 Route53 路由(示例如下)。我看了一些示例,很不明白 HostedZoneId 和 HostedZoneName 参数是什么,我应该在下面的模板中传递。在此之前我需要创建一些其他资源吗?这些参数指的是什么 - HostedZone Id 和 name?

 Record:
    Type: AWS::Route53::RecordSet
    Properties:
      HostedZoneName: !Ref 'HostedZoneName'
      HostedZoneId: !Ref 'HostedZoneId'
      Comment: DNS name for my instance.
      Name: !Join ['', [!Ref 'Subdomain', ., !Ref 'HostedZoneName']]
      Type: CNAME
      ....

标签: dnsamazon-route53

解决方案


推荐阅读