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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南