splunk / terraform-provider-splunk

Terraform Provider for Splunk
Mozilla Public License 2.0
104 stars 78 forks source link

Unable to create a Metric index #48

Closed arnaudouttiercloudreach closed 3 years ago

arnaudouttiercloudreach commented 3 years ago

With provider version 1.3.7, when I try to create a simple Metric index like this :

resource splunk_indexes metrics_index {
  name     = "metrics" 
  datatype = "metric"
}

I get this error :

Error: Unable to find resource: metrics.

I have no error with event datatype indexes.

nstonesplunk commented 3 years ago

Looks like metrics indexes can be successfully created but the provider fils to read/list them as the endpoint defaults to only listing indexes with the 'event' datatype.

Fix in progress: https://github.com/splunk/terraform-provider-splunk/pull/50