splunk / terraform-provider-splunk

Terraform Provider for Splunk
Mozilla Public License 2.0
103 stars 75 forks source link

Unable to set default config parameter for indexes #115

Open PetroPliuta opened 2 years ago

PetroPliuta commented 2 years ago

Hello,
I am trying to change maxTotalDataSizeMB default configuration parameter for indexes
I can do this via cli by adding this section in file /opt/splunk/etc/system/local/indexes.conf:

[default]  
maxTotalDataSizeMB = 100  

The question is How to do the same via Terraform?
I am trying to use the following config:

resource "splunk_configs_conf" "indexes_default_size" {  
  name = "indexes/default"  
  variables = {   
      "maxTotalDataSizeMB" : "100"  
   }  
}  

Output:

│ Error: Unable to find resource: indexes/default  
│  
│   with splunk_configs_conf.indexes_default_size,  
│   on main.tf line 45, in resource "splunk_configs_conf" "indexes_default_size":  
│   45: resource "splunk_configs_conf" "indexes_default_size" {  

Splunk: 8.2.6
Splunk provider: 1.4.12