Open maniSHarma7575 opened 16 hours ago
Research:
Aws::CloudWatchEvents::Client#put_rule
method doesn't have an option to pass the timezone with schedule expression.
https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutRule.html
Hence we can't find help directly from AWS. Now question is do we want the parser in between to convert the cron expression from the user specified timezone to the UTC before giving it to put_rule API?
AWS EventBridge cron expressions have specific allowed values, and we need to handle the edge cases and constraints of AWS EventBridge cron expressions more carefully.
Hence it would be better if we keep the UTC for now and target this issue in next milestone (0.2.0) as it required good amount of effort.
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-use-sam.html
Problem
As of now the cron schedule using the command below is scheduled always in the
UTC
timezone. We have to provide the option to the user to set the timezone of their choice using the flag--tz=UTC
.Acceptance Criteria
--tz
for thehibernate node
command which should accept the all possible timezone listed in the AWS doc for the cron expression mentioned in the AWS Event Bridge.