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
EXPERT
asked 5 months ago24 views
1 Answer
0

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

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

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

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions