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ヶ月前25ビュー
1回答
0

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

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

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

profile picture
エキスパート
回答済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ