0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EventBridgeのcron式で曜日を指定する

Posted at

土日休みなので、休日や夜間は検証EC2や検証RDSは停止してランニングコストを抑えよう!
EventBridgeでのcron式での曜日指定ってあんまりやったことなかったので、備忘として記載しておきます。

例)月曜日から金曜日までの6:55を指定する例

55 6 ? * MON-FRI *

ポイントは「日」項目が「?」であることと、「曜日」項目が「数字ではなく英語短縮3文字」が使えるということ。
image.png

曜日は「数字」での指定もできるが、わかりにくいのでこっちの方がいいかも?

参考URL
https://docs.aws.amazon.com/ja_jp/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?