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

label_value_case, label_key_case and id_length_limit are set to incorrect values by default failing validations #108

Open
anon892 opened this issue Jun 17, 2021 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@anon892
Copy link

anon892 commented Jun 17, 2021

Describe the Bug

Terraform 13 allows for validation block inside variables and the variables values for label_value_case, label_key_case and id_length_limit are set to incorrect values by default, which is failing validation. This also conflicts with the information present in the README where the default values mentioned and set are incorrect.

Expected Behavior

The Expected behavior is that the README should reflect the default value correctly and the code should be updated accordingly so that we don't get validation errors.

Steps to Reproduce

Steps to reproduce the behavior:
Pull in the latest code from the module and run it. The validation for the above variables fail and it gives errors like below:

Error: Custom variable validation is experimental
on .terraform/modules/es6.es/context.tf line 71, in variable "context":
71: validation {
This feature is currently an opt-in experiment, subject to change in future
releases based on feedback.
Activate the feature for this module by adding variable_validation to the list
of active experiments.
Error: Custom variable validation is experimental
on .terraform/modules/es6.es/context.tf line 167, in variable "id_length_limit":
167: validation {
This feature is currently an opt-in experiment, subject to change in future
releases based on feedback.
Activate the feature for this module by adding variable_validation to the list
of active experiments.
Error: Custom variable validation is experimental
on .terraform/modules/es6.es/context.tf line 182, in variable "label_key_case":
182: validation {
This feature is currently an opt-in experiment, subject to change in future
releases based on feedback.
Activate the feature for this module by adding variable_validation to the list
of active experiments.
Error: Custom variable validation is experimental
on .terraform/modules/es6.es/context.tf line 197, in variable "label_value_case":
197: validation {
This feature is currently an opt-in experiment, subject to change in future
releases based on feedback.
Activate the feature for this module by adding variable_validation to the list
of active experiments.

  • Terraform Version [e.g. 13.5]
@anon892 anon892 added the bug 🐛 An issue with the system label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant