We have asg with current policy. example current date time UTC : 23 May 2020 , 0600 AM and i have policy to stop and start instance at cron time 1000 AM but when i m applying now terraform plan , at aws we can see policy start time being taken as 24 MAY 1000 AM.
so question is why it does not consider today's date
policy objective : for everyday demolish and create new instance
resource "aws_autoscaling_schedule" "scale_down" {
scheduled_action_name = "scale_down"
min_size = 0
max_size = 0
recurrence = "0 10 * * *"
desired_capacity = 1
autoscaling_group_name = "${aws_autoscaling_group.asg.name}"
}
resource "aws_autoscaling_schedule" "scale_up" {
scheduled_action_name = "scale_up"
min_size = 1
max_size = 1
recurrence = "10 10 * * *"
desired_capacity = 1
autoscaling_group_name = "${aws_autoscaling_group.asg.name}"
}