terraform-ibm-modules/terraform-ibm-cluster

Error: error latching monitoring instance to cluster

lionelmace opened this issue · 1 comments

When running this tf script, I face the following error:

Error: error latching monitoring instance to cluster: Request failed with status code: 409, ServerErrorResponse: {"incidentID":"6d0670fe-d449-4b2b-aa15-59883a643d13,6d0670fe-d449-4b2b-aa15-59883a643d13","code":"S0013","description":"A logging or monitoring configuration for this cluster already exists. To use a different configuration, delete the existing configuration and try again.","type":"General"}
│
│   with module.kubernetes_sysdig_attach.ibm_ob_monitoring.sysdig,
│   on .terraform/modules/kubernetes_sysdig_attach/modules/configure-sysdig-monitor/main.tf line 6, in resource "ibm_ob_monitoring" "sysdig":
│    6: resource "ibm_ob_monitoring" "sysdig" {

Should the module configure-sysdig-monitor check whether or not there is already a Sysdig instance attached to the cluster?

Hi @lionelmace, Currently IBM Cloud Provider doesn't support ob_logging, ob_monitoring datasources. Once there is a datasource to get/check the details of a logging or monitoring instance.. we can modify the configure-sysdig-monitor module accordingly.