# Im trying to implement aws waf web acl with F5-API\_Managed

**URL:** <https://discuss.hashicorp.com/t/im-trying-to-implement-aws-waf-web-acl-with-f5-api-managed/30659>\
**Category:** Terraform\
**Created:** [October 13, 2021, 12:52pm UTC](https://discuss.hashicorp.com/t/im-trying-to-implement-aws-waf-web-acl-with-f5-api-managed/30659 "2021-10-13T12:52:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eladlevi47](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/eladlevi47/32/19649_2.png) [@eladlevi47](https://discuss.hashicorp.com/u/eladlevi47)\
**Post date:** [October 13, 2021, 12:52pm UTC](https://discuss.hashicorp.com/t/im-trying-to-implement-aws-waf-web-acl-with-f5-api-managed/30659/1 "2021-10-13T12:52:15Z")

</div>

When running terraform plan Im getting an error:  
│ Error: Insufficient visibility\_config blocks  
│  
│ on waf.tf line 5, in resource “aws\_wafv2\_web\_acl” “project\_waf\_web\_acl”:  
│ 5: resource “aws\_wafv2\_web\_acl” “project\_waf\_web\_acl” {  
│  
│ At least 1 “visibility\_config” blocks are required.

The resources I use:  
resource “aws\_wafv2\_web\_acl\_association” “project\_waf\_web\_acl\_association” {  
resource\_arn = aws\_lb.alb\_nb\_app.arn  
web\_acl\_arn = aws\_wafv2\_web\_acl.project\_waf\_web\_acl.arn  
}  
resource “aws\_wafv2\_web\_acl” “project\_waf\_web\_acl” {  
name = “managed\_rule\_example”  
description = “Example”  
scope = “REGIONAL”

default\_action {  
allow {}  
}

rule {  
name = “F5-API\_Managed”  
priority = 0

```
statement {
  managed_rule_group_statement {
    name = "API_Managed"
    vendor_name = "F5"
  }
}

visibility_config {
  cloudwatch_metrics_enabled = true
  metric_name = "F5-API_Managed"
  sampled_requests_enabled = true
}

```

}  
}
