Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] the validation of the transform name is incorrect #935

Open
daverick opened this issue Nov 28, 2024 · 1 comment
Open

[Bug] the validation of the transform name is incorrect #935

daverick opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@daverick
Copy link

Describe the bug
The provider does not accept transform with a name that contains dots . like sli-generic-log.delay and this is not a limitation coming from Elasticsearch.

│ Error: invalid value for name (must contain only lower case alphanumeric characters, hyphens, and underscores)
...  with elasticstack_elasticsearch_transform.sli_generic_log_frequency,
on transforms-ops.tf line 2, in resource "elasticstack_elasticsearch_transform" "sli_generic_log_frequency":
 2:   name = "sli-generic-log.frequency"

Expected behavior
transform name with a dot should be accepted

Versions (please complete the following information):

  • Provider version 0.11.11
  • Elasticsearch Version 8.15

Additional context
Looks like only this validation rule need to be changed.

(I am in an air gapped environment this why I was not able to copy paste directly the config or the exact output producing this bug)

@daverick daverick added the bug Something isn't working label Nov 28, 2024
@tobio
Copy link
Member

tobio commented Jan 11, 2025

@daverick dots (.) are not valid within a transform name according to the Elasticsearch docs. I understand they're currently accepted, but we should first get the ES docs updated to confirm that they're intended to work, and won't be removed in some future version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants