Forum Discussion
Terraform apply failures - loadbalancer_type.https.port_choice
Hi,
I just run TF config via Jenkins. I used follow github link with examples - https://github.com/f5devcentral/terraform-f5xc.
Connection to F5 XC and deployment of the origin pools works fine but when I tried to create load balancer it fails with error.
Error: error creating HttpLoadbalancer: Creating object: Unsuccessful POST at URL .../http_loadbalancers, status code 400, body {"code":3,"details":[{"code":"UNKNOWN","details":"Field spec.loadbalancer_type.https.port_choice fails rule ves.io.schema.rules.message.required_oneof constraint true due to value \u003cnil\u003e","timestamp":"2025-04-16T13:26:34Z"}],"message":"Field spec.loadbalancer_type.https.port_choice should be not nil, got nil in request."}
Where I can check what properties are mandatory to properly execute TF apply?
Thank you.
Best Regards,
Jozef
Better see the official repo as it mentions that what you saw as an issue:
volterra_http_loadbalancer | Resources | volterraedge/volterra | Terraform | Terraform Registry
volterra_origin_pool | Resources | volterraedge/volterra | Terraform | Terraform Registry
2 Replies
Better see the official repo as it mentions that what you saw as an issue:
volterra_http_loadbalancer | Resources | volterraedge/volterra | Terraform | Terraform Registry
volterra_origin_pool | Resources | volterraedge/volterra | Terraform | Terraform Registry
- JaZy
Altostratus
Issue found.
In https section for LB part port is mandatory. Is missing in https://github.com/f5devcentral/terraform-f5xc/blob/main/HTTP_and_Origin_Pool/LB_EXTERNAL_HTTPS/volterra_op_lb-https.tf.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com