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
ESPERTO
posta 5 mesi fa25 visualizzazioni
1 Risposta
0

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

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

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

profile picture
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande