问题描述:

AWS's Write-ASScheduledUpdateGroupAction API offers the ability to create scheduled actions within AutoScalingGroups, both one-time and recurring. I'd like to use it to create a more complicated schedule using the "Cron" -Recurrence option.

In AWS's documentation, the -StartTime argument requires that it be set to a future date, but what isn't clear is that -StartTime is when the Scheduled Action will run the first time.

My question: what's the best way to parse a Cron expression in Powershell so that I can programmatically make -StartTime the first desired recurrence of this Scheduled Action?

相关阅读:
Top