Schedule DSL
Cody supports creating a CloudWatch scheduled event rule that will trigger the codebuild project periodically. You define the schedule in .cody/schedule.rb
. Here’s an example of what that looks like:
.cody/schedule.rb:
rate "1 day"
# or
# cron("0 10 * * ? *") # Run at 10:00 am (UTC) every day
Full DSL
The convenience methods merely wrap properties of the AWS::Events::Rule. If you wanted to set the CloudFormation properties more directly, here’s an example of using the Full DSL.
.cody/schedule.rb:
description "my description"
schedule_expression "rate(1 day)"
Pro tip: Use the <- and -> arrow keys to move back and forward.
Edit this page
See a typo or an error? You can improve this page. This website is available on GitHub, and contributions are encouraged and welcomed. We love pull requests from you!
- Suggest an edit to this page (here's the contributing guide).
- Open an issue about this page to report a problem.