Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while attaching WAF policy to virtual server #961

Open
rsawant23 opened this issue Apr 11, 2024 · 1 comment
Open

Error while attaching WAF policy to virtual server #961

rsawant23 opened this issue Apr 11, 2024 · 1 comment

Comments

@rsawant23
Copy link

Environment

  • TMOS/Bigip Version: BIG-IP 17.1.1.1
  • Terraform Version: v1.0.3
  • Terraform bigip provider Version: 1.19.0

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/<waf_policy> was added to virtual server /Common/<virtual_server> 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/<waf_policy>"
    ...
    }

  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?

@rsawant23 rsawant23 added the bug label Apr 11, 2024
@pgouband
Copy link
Collaborator

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants