FlexibleEngineCloud / terraform-provider-flexibleengine

Terraform flexibleengine provider
https://www.terraform.io/docs/providers/flexibleengine/
Mozilla Public License 2.0
30 stars 53 forks source link

LB Pool v2 UDP support #487

Closed pierrecarre closed 3 years ago

pierrecarre commented 3 years ago

Hello,

according to the documentation (and thanks to the fix of issue #413), we can create lb_listener_v2 in UDP, but we cannot create a lb_pool_v2 in UDP,

Error: Only 'TCP', 'HTTP', and 'HTTPS' are supported values for 'protocol'

  on .terraform/modules/elb/main.tf line 37, in resource "flexibleengine_lb_pool_v2" "pools":
  37: resource "flexibleengine_lb_pool_v2" "pools" {

https://github.com/FlexibleEngineCloud/terraform-provider-flexibleengine/blob/6df0ace822dfec27599056ce3e2dfeb407c9bf13/flexibleengine/resource_flexibleengine_lb_pool_v2.go#L52-L64

even if this is allowed by the API (and through the web UI).

image

Also, regarding lb_listener_v2, HTTPS should not be in the list of available protocols as this is not available in the API

image

Thanks for you help, Pierre

ShiChangkuo commented 3 years ago

@pierrecarre Thanks for raising this, will fix it soon.