-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The provider does not know how to handle downsample parameter in ILM
https://registry.terraform.io/providers/elastic/elasticstack/latest/docs/resources/elasticsearch_index_lifecycle
To Reproduce
Steps to reproduce the behavior:
- Import an ILM in terraform (for example .monitoring-8-ilm-policy)
- Change the down sample settings via Kibana (for example enable on cold for 1 minute interval), see screenshot
- Terraform plan
- Error:
module.elk.module.pipelines.elasticstack_elasticsearch_index_lifecycle.templated_lifecycle[".monitoring-8-ilm-policy"]: Refreshing state... [id=G_zwXyyZTgGRjMDbIOoR2Q/.monitoring-8-ilm-policy] ╷ │ Error: Invalid address to set: []string{"cold", "0", "downsample"} │ │ with module.elk.module.pipelines.elasticstack_elasticsearch_index_lifecycle.templated_lifecycle[".monitoring-8-ilm-policy"], │ on ../../modules/elk/assets/index_lifecycle.tf line 1, in resource "elasticstack_elasticsearch_index_lifecycle" "templated_lifecycle": │ 1: resource "elasticstack_elasticsearch_index_lifecycle" "templated_lifecycle" { │ ╵
Note: we wrapped the ressource in a module but should not make a difference in the state refresh step
Expected behavior
A diff on terraform showing that downsample settings was set outside terraform
or
Possibility to specify downsample using the provider
Debug output
not needed here
Versions (please complete the following information):
- OS: Elastic on Elastic Cloud
- Terraform Version 1.5.2
- Provider version 0.6.1
- Elasticsearch Version 8.8.2
Additional context
ILM Downsample documentation.
nilsbentfeld, sym-stiller and jehof
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working