IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
339 stars 663 forks source link

Feature Request: Support `HTTP_COOKIE` for ibm_lbaas `session_stickiness` parameter #1757

Closed cbrune-signal closed 3 years ago

cbrune-signal commented 4 years ago

It would be nice to support the HTTP_COOKIE option for ibm_lbaas session_stickiness parameter.

Terraform Version

Terraform v0.12.24

Affected Resource(s)

Expected Behavior

According to the Softlayer API, one should be able to specify HTTP_COOKIE for the session_stickiness parameter. See Softlayer API

Actual Behavior

Terraform errors out with:

Error: "protocols.0.session_stickiness" must contain a value from []string{"SOURCE_IP"}, got "HTTP_COOKIE"

Steps to Reproduce

  1. Create a ibm_lbaas configuration with a protocol section like:
    protocols {
    frontend_protocol     = "HTTPS"
    frontend_port         = 443
    tls_certificate_id    = var.api_ssl_certificate_id
    backend_protocol      = "HTTP"
    backend_port          = 7072
    load_balancing_method = "round_robin"
    session_stickiness    = "HTTP_COOKIE"
    }
kavya498 commented 3 years ago

Avalable in 1.21.0