Open 01martinelli opened 1 week ago
This is an interesting issue with the provider. As it's written, supporting this behaviour doesn't really make sense since {now/s{yyyy-MM-dd}}
would evaluate to something different if the TF module was applied on different days. The provider needs to track the initial index, not just a random one matching the pattern.
Fixing this issue in isolation will then mean users hit https://github.com/elastic/terraform-provider-elasticstack/issues/94. There's a larger body of work required here to properly support lifecycle policy managed groups of indices within the provider. On the surface there's likely diminishing value in adding that support over say using data streams instead (I may certainly be missing some common cases there though).
Description When trying to create an index with a date in the name via the Terraform Provider for Elastic, the operation fails due to unsupported special characters in the index name. The same command works in Kibana DevTools but not through the Terraform provider.
To Reproduce Steps to reproduce the behavior:
terraform plan
terraform apply
Expected behavior The index should be created successfully with the specified date in the name, similar to how the command works when executed directly in Kibana DevTools.