Aws cli associate web acl to cloudfront error

0

Hello,
I try to associate web acl to cloudfront but I've error. Where I wrong? Thank You:

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

error:

An error occurred (WAFNonexistentItemException) when calling the AssociateWebACL operation: The referenced item does not exist.

ieraora
質問済み 5年前718ビュー
1回答
0
承認された回答

likely cause might be the arn seems incorrect.

should be in the format:
arn:aws:cloudfront::<accountid>:distribution/<distid>
I think you are missing the arn part at the beginning.

回答済み 5年前

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

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

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

関連するコンテンツ