尝试列出 waf-regional 的标签时:
aws waf-regional list-tags-for-resource --resource-arn <web-acl-arn-here>
我得到以下回复
An error occurred (WAFInvalidParameterException) when calling the ListTagsForResource operation:
根据文档,这似乎是正确的。
对普通 waf 的相同调用有效:
aws waf list-tags-for-resource --resource-arn <web-acl-arn-here>
{
"NextMarker": "",
"TagInfoForResource": {
"ResourceARN": "<web-acl-arn-here>",
"TagList": []
}
}
尝试将标签添加到 waf-regional web-acl 具有相同的结果:
aws waf-regional tag-resource --resource-arn <web-acl-arn-here> --tags Key=Name,Value=TestRegionalv1
An error occurred (WAFInvalidParameterException) when calling the TagResource operation:
在我看来, waf-regional 根本不支持标签 - 但文档似乎表明它受到支持。有谁知道这里是怎么回事?
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/waf-regional/tag-resource.html https://awscli.amazonaws.com/v2/documentation/api/latest/reference/waf -regional/list-tags-for-resource.html