IBM-Cloud / terraform-provider-ibm

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

Resource controller can't able to update service-endpoint for event-stream instance #5568

Open SIDDHARTHA-PRADHAN1 opened 3 months ago

SIDDHARTHA-PRADHAN1 commented 3 months ago

Resource controller can't able to update service-endpoint for event-stream instance

Terraform CLI and Terraform IBM Provider Version

Running on schematics workspace - ibm-cloud/ibm v1.68.0

Affected Resource(s)

resource "ibm_resource_instance" "es_instance" {
  name              = var.es_name
  service           = "messagehub"
  plan              = var.plan
  location          = var.region
  resource_group_id = var.resource_group_id
  tags              = var.tags
  timeouts {
    create = var.create_timeout
    update = var.update_timeout
    delete = var.delete_timeout
  }

  parameters = {
    service-endpoints = var.service_endpoints
    throughput        = var.throughput
    storage_size      = var.storage_size
    kms_key_crn       = var.kms_key_crn
  }
}

Terraform Configuration Files

Debug Output

EventSTream-Apply-Output.txt

Panic Output

Output is expected.

Expected Behavior

I observed schematics workspace can't update service endpoint of event-stream.Even the output is saying it's updated the instance still in it's previous state.

Actual Behavior

Workspace should update event stream service-endpoint to expected one.

event-stram workspace

References

https://github.com/IBM-Cloud/terraform-provider-ibm/blob/eb562182f3593fb57cb212ebea0168c3d9af969a/ibm/service/resourcecontroller/resource_ibm_resource_instance.go#L750

https://github.com/IBM-Cloud/terraform-provider-ibm/blob/eb562182f3593fb57cb212ebea0168c3d9af969a/ibm/service/resourcecontroller/resource_ibm_resource_instance.go#L741

ocofaigh commented 3 months ago

cc @hkantare since its missing the labels here

ocofaigh commented 3 months ago

FYI, this is how the instance is being created (code from this module):

resource "ibm_resource_instance" "es_instance" {
  name              = var.es_name
  service           = "messagehub"
  plan              = var.plan
  location          = var.region
  resource_group_id = var.resource_group_id
  tags              = var.tags
  timeouts {
    create = var.create_timeout
    update = var.update_timeout
    delete = var.delete_timeout
  }

  parameters = {
    service-endpoints = var.service_endpoints
    throughput        = var.throughput
    storage_size      = var.storage_size
    kms_key_crn       = var.kms_key_crn
  }
}