你好,先谢谢了…
我利用AWS CloudFormation自动构buildVPC和子网等
我希望CloudFormation模板为VPC创buildRoute 53私有托pipe区域,但似乎唯一的select是创buildPublic Hosted Zones。 公共区域的语法如下(在“资源”中):
"MyHostedZone": { "Properties": { "HostedZoneConfig": { "Comment": "Created by CloudFormation" }, "Name": "subdomain.example.com" }, "Type": "AWS::Route53::HostedZone" }
参考: http : //docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html#cfn-route53-hostedzone-name
我已经阅读了用于创build托pipe区域的API文档, 看起来创build公共和私有托pipe区域的terminal似乎是相同的,但区别在于创build私有托pipe区域包括VPC ID和区域。
有没有人有build议如何使用CloudFormation创build一个私人托pipe区域? 我注意到CloudFormation有能力创build一个“自定义资源”,但文档相对混乱。
谢谢!!
我也一直在等。 看起来像是在你的文章后几周添加的,你可以在这篇文章中find更多的信息
"DNS": { "Type": "AWS::Route53::HostedZone", "Properties": { "HostedZoneConfig": { "Comment": "My hosted zone for example.com" }, "Name": "example.com", "VPCs": [{ "VPCId": "vpc-abcd1234", "VPCRegion": "ap-northeast-1" }, { "VPCId": "vpc-efgh5678", "VPCRegion": "us-west-2" }], "HostedZoneTags" : [{ "Key": "SampleKey1", "Value": "SampleValue1" }, { "Key": "SampleKey2", "Value": "SampleValue2" }] } }