terraform-provider-bigip icon indicating copy to clipboard operation
terraform-provider-bigip copied to clipboard

In Our WAF architecture we need to configure the bigip_ltm_virtual_server from the Local Traffic Menu (LTM) - missing Argument request

Open rakotkar0608 opened this issue 3 years ago • 7 comments

request arguments for bigip_ltm_virtual_server

In Our WAF architecture we need to configure the bigip_ltm_virtual_server from the Local Traffic Menu (LTM) - missing Argument request

We are automating the F5 WAF configuration using terraform. We are using bigip_ltm_virtual_server to add virtual servers in Local Traffic section of WAF but we haven't find any argument to pass values to Virtual Servers below Properties. Please help and create below arguments for bigip_ltm_virtual_server.

  • Protocol Profile (Client)
  • Protocol Profile (Server)
  • HTTP Profile (Client)
  • HTTP Profile (Server)
  • HTTP Compression Profile
  • Web Acceleration Profile

Describe the solution you'd like

We want the arguments for bigip_ltm_virtual_server which can assign values to below properties.

  • Protocol Profile (Client)
  • Protocol Profile (Server)
  • HTTP Profile (Client)
  • HTTP Profile (Server)
  • HTTP Compression Profile
  • Web Acceleration Profile

rakotkar0608 avatar Sep 07 '22 08:09 rakotkar0608

@rakotkar0608 User can specify all the required profiles using profiles input argument, but they need to make sure protocol field also specified properly based on profile type.

# A Virtual server with separate client and server profiles
resource "bigip_ltm_virtual_server" "https" {
  name                       = "/Common/terraform_vs_https"
  destination                = "10.255.255.254"
  description                = "VirtualServer-test"
  port                       = 443
  profiles                   = ["/Common/tcp","/Common/http"]
  client_profiles            = ["/Common/clientssl"]
  server_profiles            = ["/Common/serverssl"]
  security_log_profiles      = ["/Common/global-network"]
  source_address_translation = "automap"
}

RavinderReddyF5 avatar Sep 27 '22 12:09 RavinderReddyF5

We are checking it

rakotkar0608 avatar Sep 29 '22 04:09 rakotkar0608

We use this format but no luck

rakotkar0608 avatar Oct 18 '22 12:10 rakotkar0608

@rakotkar0608 can you please share terraform config file and debug logs for further debug on this issue

RavinderReddyF5 avatar Oct 18 '22 16:10 RavinderReddyF5

The provided code can configure only Profiles like Protocol profile (client) and HTTP Profile (client). We are not able to configure attributes like Protocol profile (server), HTTP Profile (server), HTTP Compression Profile and Web Accelelration Profile for Virtual Servers.

rakotkar0608 avatar Oct 19 '22 09:10 rakotkar0608

We need the attribute format to define client and server profiles for tcp and http using context.

rakotkar0608 avatar Oct 20 '22 17:10 rakotkar0608

Hello @RavinderReddyF5, We are able to configure the other profiles like http compression and web acceleration profiles using below mentioned profile attribute format. But for the profiles like http and protocol, we can configure only for client context and not for server context. Please provide us attribute format to define both client and server context.

profiles = ["/Common/tcp","/Common/http"]

rakotkar0608 avatar Oct 21 '22 17:10 rakotkar0608

Hello @RavinderReddyF5, please help us.

rakotkar0608 avatar Nov 03 '22 08:11 rakotkar0608

@rakotkar0608 we are tracking internally for your requests. will update as and when it completed

RavinderReddyF5 avatar Nov 03 '22 08:11 RavinderReddyF5

@rakotkar0608 can you provide the logs please?

G-gonzalezjimenez avatar Nov 03 '22 20:11 G-gonzalezjimenez

Hi Guillermo, this has been resolved by using client profile and server profile attributes of Virtual Server.

rakotkar0608 avatar Nov 17 '22 06:11 rakotkar0608