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

Unable to setup cron_schedule variable in ES auto_tune #154

Open
vinayadahal opened this issue Feb 28, 2023 · 0 comments
Open

Unable to setup cron_schedule variable in ES auto_tune #154

vinayadahal opened this issue Feb 28, 2023 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@vinayadahal
Copy link

Describe the Bug

I am unable to setup auto_tune for ES using the provided documentation. Whenever I run terraform plan I get following error.

An input variable with the name "auto_tune_cron_schedule" has not been declared. This variable can be declared with a variable "auto_tune_cron_schedule" {} block.

Upon checking the main.tf file on this repo, it was referring to auto_tune_cron_schedule variable and when I checked variables.tf, I didn't find that variable. I believe someone should check the line 182 on main.tf.

Currently, it is as follows:

cron_expression_for_recurrence = var.auto_tune_cron_schedule

Expected Behavior

I think should be as follows (if I am not mistaken)

cron_expression_for_recurrence = var.auto_tune.cron_schedule

Also, What is the proper way to define the cron expression for auto_tune. I checked the documentation but didn't find any examples for it.

Steps to Reproduce

  auto_tune = {
    enabled             = true
    rollback_on_disable = "DEFAULT_ROLLBACK"
    starting_time       = "2023-03-03T02:45:00"
    cron_schedule       = "45 02 * * ? *"
    duration            = 2
  }

Screenshots

No response

Environment

No response

Additional Context

No response

@vinayadahal vinayadahal added the bug 🐛 An issue with the system label Feb 28, 2023
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

Successfully merging a pull request may close this issue.

1 participant