-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Describe the feature
Cloudformation ScalableTarget ScheduledAction supports a timezone property. The timezone argument is not available when calling ScalableTarget.scaleOnSchedule:
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationautoscaling.ScalableTarget.html#scalewbronwbrscheduleid-action
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationautoscaling.ScalingSchedule.html
Use Case
Cron time expressions have to be entered in UTC. For timezones observing Daylight Savings Time you have to adjust the schedule when DST starts and again when it ends to get proper scheduling.
Proposed Solution
Add the timezone property to the ScalingSchedule type that is passed to scaleOnSchedule
Other Information
I am using the python library, so I would have no way to add this to the json object for ScalingSchedule like you could in JS/TS since the autogenerated code turns these into individual arguments to the scaleOnSchedule call.
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.103.1
Environment details (OS name and version, etc.)
Ubuntu 20.04