【发布时间】:2016-01-06 10:00:08
【问题描述】:
这就是我设置条目的方式
cat << EOF > /tmp/route53-healthcheck.json
{
"IPAddress": "10.10.10.10",
"Port": 80,
"Type": "HTTP",
"ResourcePath": "/somefile.txt"
}
EOF
aws route53 create-health-check \
--caller-reference $(date +'%Y%m%dT%H%M%d') \
--health-check-config file:///tmp/route53-healthcheck.json > /tmp/route53-healthcheck.log
当我看到route53 条目时,它缺少名称(第一个条目是手动输入,第二个来自上面的 sn-p。我指的是红色污迹。)
docs 中列出的所有选项都不相关。
{
"IPAddress": "string",
"Port": integer,
"Type": "HTTP"|"HTTPS"|"HTTP_STR_MATCH"|"HTTPS_STR_MATCH"|"TCP"|"CALCULATED",
"ResourcePath": "string",
"FullyQualifiedDomainName": "string",
"SearchString": "string",
"RequestInterval": integer,
"FailureThreshold": integer,
"MeasureLatency": true|false,
"Inverted": true|false,
"HealthThreshold": integer,
"ChildHealthChecks": ["string", ...]
}
如果有其他方法可以以其他方式设置名称,有什么想法吗?
解决方案
aws route53 change-tags-for-resource --resource-type healthcheck --resource-id 41633bb1-4adc-4357-983f-767191ff3248 --add-tags Key=Name,Value="new-name"
我犯的一些错误:
- 我的 aws 版本太旧了。在 ubuntu 上,我必须
apt-get remove awscli然后使用pip install awscli从 pip 安装最新版本。然后可以在~/.local/bin/aws中找到可执行文件 - 当我更改名称时,我不得不强制重新加载网页,而不是仅仅使用 aws 图标刷新它(想想
Ctrl+Shift+R)。
【问题讨论】:
标签: amazon-route53