Forum Discussion

chelusco's avatar
chelusco
Icon for Altostratus rankAltostratus
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?

  • 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 Altostratus rankAltostratus

      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"]

      }