Aws CLI 将 Web ACL 关联到 CloudFront 出错。

0

【以下的问题经过翻译处理】 您好,

我尝试将Web ACL关联到CloudFront,但遇到了错误。我哪里出错了?谢谢!

aws waf-regional associate-web-acl --web-acl-id 00a15d51-c2f1-65ca-89f2-e3fe95525557fe --resource-arn aws:cloudfront::84540000050:distribution/E5ZISDGFSGEUXCTH6

错误:

调用AssociateWebACL操作时发生错误(WAFNonexistentItemException):引用的项目不存在。

profile picture
专家
已提问 5 个月前21 查看次数
1 回答
0

【以下的回答经过翻译处理】 可能的原因是arn格式不正确。应该是以下格式:

arn:aws:cloudfront::<accountid>:distribution/<distid>

我认为你缺少开头的arn部分。

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则