terraform-provider-sumologic icon indicating copy to clipboard operation
terraform-provider-sumologic copied to clipboard

bug: sumologic_cloud_to_cloud_source: Azure Event Hubs after importing, only id and collector_id in state

Open zoezhangmattr opened this issue 1 year ago • 0 comments

create azure event hubs source in ui, try to import to tf terrraform version: 1.4.2 sumologic version: 2.24.0

resource "sumologic_cloud_to_cloud_source" "eventhub" {
  collector_id = "119303367"
  schema_ref = {
    type = "Azure Event Hubs"
  }
  config = jsonencode({
some valid config
})
}

run command terraform import sumologic_cloud_to_cloud_source.eventhub /

success! and terraform state show sumologic_cloud_to_cloud_source.eventhub

resource "sumologic_cloud_to_cloud_source" "eventhub" {
    collector_id = collectorid
    id           = "<sourceid>"
}

there is no config or schema

terraform plan -target sumologic_cloud_to_cloud_source.eventhub

resource "sumologic_cloud_to_cloud_source" "eventhub" {
      + config       = jsonencode(
            {some config}
+ schema_ref   = {
          + "type" = "Azure Event Hubs"
        }
}

zoezhangmattr avatar Jul 28 '23 02:07 zoezhangmattr