我正在预烘焙从中启动某些实例的AMI;
我唯一的网络配置是添加自定义dns,如下所示:
将域名服务器设置为10.3.4.1;
在AMI的{
"_id": "TRAN001",
"_rev": "13-59a53069c1ebd6ecfc23ca1dea0ba28f",
"effectiveDateOfAction": "10-30-2018",
"employeeName": "Kumar,Vinoth",
"transferReportID": "TRAN001",
"~version": "76:0"
}
{
"_id": "TRAN001",
"_rev": "12-c320c61168f5d6d020f971124cb395f2",
"effectiveDateOfAction": "05-10-2018",
"employeeName": "Vinoth",
"transferReportID": "TRAN002",
"~version": "77:0"
}
{
"_id": "TRAN003",
"_rev": "16-567a15e9ea7e2349d4c24816e7eafda3",
"effectiveDateOfAction": "10-20-2017",
"employeeName": "Kumar",
"transferReportID": "TRAN003",
"~version": "78:0"
}
中;
然后,在一个实例中,我从这个ami启动:
{"selector": {"$and": [{"transferReportID": {"$ne": null}},{"effectiveDateOfAction": {"$gt": "10-31-2017"}}]}}
这种行为正常吗?
答案 0 :(得分:1)
在您的AMI中,文件/etc/sysconfig/network
确保主机名设置为以下名称:
HOSTNAME=localhost.localdomain
和NETWORKING=yes
答案 1 :(得分:0)
域名服务器10.3.4.1与主机名不同。需要更多信息来实际提供帮助。如果您尝试将EC2实例DNS服务器设置指向该IP地址,则可以在VPC的DHCP选项中进行设置。
您要在这里实现什么?