2. apply the configuration.
3. run a `terraform plan` using the same configuration. If the problem persists, Terraform will think that the resource's `alert_track` value has changed. The tfstate file seems to believe that the actual value of alert_track is `""`, which is different from `true`. Excerpt from plan output follows:
splunk_saved_searches.mysearch will be updated in-place
[...redacted...]
alert_track = "true"
This is problematic, because, if one terraform state is being used to manage a large number of searches, a terraform apply will attempt to update every resource that has an explicit alert_type definition - and will also fail if any one of those updates fails for any reason (such as a timeout). It also increases the runtime of a terraform apply (particularly when only one resource is being changed, within a large state). Attempting to invoke the same without alert_type defined does not seem to yield alert_type = true as a default in the above-documented environment.
Steps to reproduce: TF version: 0.13.5 Provider version: 1.3.0 (also appears to be an issue in current) Splunk version: 7.2.6
Invoke a
splunk_saved_searches
resource, settingalert_track
to true; e.g.,splunk_saved_searches.mysearch will be updated in-place
[...redacted...]
This is problematic, because, if one terraform state is being used to manage a large number of searches, a
terraform apply
will attempt to update every resource that has an explicitalert_type
definition - and will also fail if any one of those updates fails for any reason (such as a timeout). It also increases the runtime of aterraform apply
(particularly when only one resource is being changed, within a large state). Attempting to invoke the same withoutalert_type
defined does not seem to yieldalert_type = true
as a default in the above-documented environment.