F5Networks / terraform-provider-bigip

Terraform resources that can configure F5 BIG-IP products
https://registry.terraform.io/providers/F5Networks/bigip/latest/docs
Mozilla Public License 2.0
103 stars 119 forks source link

Error while attaching WAF policy to virtual server #961

Open rsawant23 opened 5 months ago

rsawant23 commented 5 months ago

Environment

Summary

Applying a WAF policy to a virtual server is erroring out with the following:

Error: 01070734:3: Configuration error: The bot-defense-asm profile /Common/ was added to virtual server /Common/ but it does not match the asm-controlling policy. The bot-defense-asm profile is added to the virtual server automatically.

Steps To Reproduce

Steps to reproduce the behavior:

  1. resource "bigip_ltm_virtual_server" "http" { ... profiles = "/Common/" ... }

  2. Terraform plan and apply

Expected Behavior

The waf policy is attached to the virtual server

Actual Behavior

I see that f5 also creates an ltm policy, do we have to add that to the virtual server to fix this?

pgouband commented 5 months ago

Hi @rsawant23,

Can you share your TF file and the configuration created on the device?

Have you tried using https://registry.terraform.io/providers/F5Networks/bigip/latest/docs/resources/bigip_fast_http_app ?