简体   繁体   English

AWS waf 和云端关联未在 web ACL 仪表板中显示请求数据

[英]AWS waf and cloudfront association doesn't show request data in the web ACL dashboard

I have previously configured the AWS waf and its corresponding web ACL manually in the AWS dashboard and then associated it with a Cloudfront distribution and it worked perfectly.我之前在 AWS 仪表板中手动配置了 AWS waf 及其相应的 web ACL,然后将其与 Cloudfront 发行版相关联,并且运行良好。 Now that I have created the process in Terraform and associated it with the same distribution (manually associated it), I get no data of the sampled requests in the web ACL dashboard.现在我已经在 Terraform 中创建了进程并将其与相同的分布关联(手动关联它),我在 web ACL 仪表板中没有获得采样请求的数据。 I have waited for over 48 hours from when I associated the web ACL with the Cloudfront distribution.从将 web ACL 与 Cloudfront 发行版关联起来,我已经等待了超过 48 小时。

Any ideas on what could be wrong?关于什么可能是错误的任何想法?

From your Terraform code, you have to enable the sampled_requests_enabled attribute to have the sample data.从您的 Terraform 代码中,您必须启用sampled_requests_enabled属性才能获得示例数据。

  visibility_config {
    cloudwatch_metrics_enabled = false
    metric_name                = "friendly-metric-name"
    sampled_requests_enabled   = true
  }

References:参考:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM