我需要为ElastiCache集群创建CNAME记录。但是,我构建了redis集群,并且只有一个节点。据我所知,redis集群还没有ConfigurationEndpoint.Address。有没有可能更改集群中节点的DNS名称,以及如何更改?
当前模板如下:
"ElastiCahceDNSRecord" : {
"Type" : "AWS::Route53::RecordSetGroup",
"Properties" : {
"HostedZoneName" : "example.com.",
"Comment" : "Targered to ElastiCache",
"RecordSets" : [{
"Name" : "elche01.example.com.",
"Type" : "CNAME",
"TTL" : "300",
"ResourceRecords" : [
{
"Fn::GetAtt": [ "myelasticache", "ConfigurationEndpoint.Address" ]
}
]
}]
}
}
发布于 2016-11-24 00:03:54
您应该能够在所提供的模板中使用PrimaryEndPoint.Address
而不是ConfigurationEndpoint.Address
来获取AWS::ElastiCache::ReplicationGroup
page上记录的主要读写缓存节点的DNS地址。
https://stackoverflow.com/questions/35014038
复制相似问题