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
ESPECIALISTA
feita há 5 meses25 visualizações
1 Resposta
0

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

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

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

profile picture
ESPECIALISTA
respondido há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas