Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SIDDHARTHA-PRADHAN1 opened this issue Aug 21, 2024 · 2 comments

Comments

@SIDDHARTHA-PRADHAN1
Copy link

SIDDHARTHA-PRADHAN1 commented Aug 21, 2024

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

params["service-endpoints"] = instance.Parameters["service-endpoints"]

@ocofaigh
Copy link
Contributor

cc @hkantare since its missing the labels here

@ocofaigh
Copy link
Contributor

ocofaigh commented Aug 26, 2024

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
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants