For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

chelusco's avatar
chelusco
Icon for Nimbostratus rankNimbostratus
Nov 12, 2024

Creating Policy using Terraform

I have been trying to create a policy onto my F5 device but keep getting conflicting errors:

This is my condition block:

condition {

   http_cookie = true

   case_sensitive = true

   values = ["cookie_value"]

}
but i receive the error: operand 'http-cookie' selector 'all' is missing required parameter 'name'.
but when I add all and name it gives me the error that name does no belong there. I have tried a bunch of different things but cannot figure it out. 

 

Can someone please help?

5 Replies

  • my provider:

    terraform {

    required_providers {

    bigip = {

    source = "F5Networks/bigip"

    version = ">= 1.0.0"

    }

    }

    }

  • Are you trying to create cookie profile via Terraform. It will be good if you can elobrate more.

    • chelusco's avatar
      chelusco
      Icon for Nimbostratus rankNimbostratus

      I am trying to create an 

      bigip_ltm_policy with a condition block where it checks if the cookie value is present if it is then perform the action blocks 

      condition {

         http_cookie = true

         case_sensitive = true

         values = ["cookie_value"]

      }

  • I think you need to raise PR here. F5 Agile Team will help you

    https://github.com/F5Networks/terraform-provider-bigip/issues

    • chelusco's avatar
      chelusco
      Icon for Nimbostratus rankNimbostratus

      I am not able to press New Issue, is there permissions I need first or someone I should contact?