terraform-aws-elasticsearch
terraform-aws-elasticsearch copied to clipboard
Unable to setup cron_schedule variable in ES auto_tune
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