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

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

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

回答问题的准则