IBM-Cloud / terraform-provider-ibm

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

lb pool member target_id update fails #5443

Closed ujjwal-ibm closed 4 days ago

ujjwal-ibm commented 1 week ago

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

    resource "ibm_is_lb_pool_member" "testacc_nlb_mem" {
        lb = "${ibm_is_lb.testacc_NLB.id}"
        pool = "${element(split("/",ibm_is_lb_pool.testacc_nlb_pool.id),1)}"
        port           = 8080
        weight = 20
        target_id = "${ibm_is_instance.testacc_instance.id}"
    }

Debug Output

Panic Output

Expected Behavior

target_id to update

Actual Behavior

"errors": [
│               {
│                   "code": "member_invalid_nlb_target",
│                   "message": "Network load balancer members must be specified with either id or href or crn.",
│                   "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-rias-error-messagesmember_invalid_nlb_target",
│                   "target": {
│                       "name": "members.target",
│                       "type": "field"
│                   }
│               }
│           ],

Steps to Reproduce

create a nlb pool member, update the target_id

  1. terraform apply

Important Factoids

References