无法为route53健康检查条目设置名称 [英] unable to set name for route53 healthcheck entry
本文介绍了无法为route53健康检查条目设置名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我设置条目的方式
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
条目时,它缺少名称(第一个条目是手动条目,第二个条目来自上面的摘录.我指的是红色污迹.)
and when i see the route53
entry, its missing the name (the first entry is a manual entry and the second one is from the snippet above. Im referring to the red smudge.)
文档中列出的所有选项不相关.
{
"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", ...]
}
有没有其他想法可以以其他方式设置名称?
Any ideas if there is another way to set the name of that in another way ?
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
).
- my aws version was old. On ubuntu, i had to
apt-get remove awscli
and then install the latest version from pip withpip install awscli
. Then the executable can be found in~/.local/bin/aws
- When i changed the name, i had to force reload the webpage instead of just refresh it with the aws icon (think
Ctrl+Shift+R
).
推荐答案
您需要使用change-tags-for-resource CLI选项在资源上设置标签[1].
You need to use the change-tags-for-resource CLI option to set a tag on a resource[1].
示例:
aws route53 change-tags-for-resource --resource-type healthcheck --resource-id <healthcheck guid> --add-tags Key=Name;Value=Value
这篇关于无法为route53健康检查条目设置名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文