5
5

More than 5 years have passed since last update.

AWS AutoScalingのスケジュール設定がコンソールからできるようになってた

Posted at

AWS AutoScaling

2015/12月までは下記のような面倒なコマンドをawscliで入れないといけなかったが
最近?コンソールからも設定できるようになっていたので軽く紹介

今までは

下記のコマンドで設定していた。スケーリングポリシーはコンソールで設定できるのにスケジュールは設定できなくて不便だった
aws autoscaling put-scheduled-update-group-action --auto-scaling-group-name "group-name" \
--scheduled-action-name "action-name" --recurrence "unix cron syntax" --desired-capacity

実例
aws autoscaling put-scheduled-update-group-action --auto-scaling-group-name autoscaling-test \
--scheduled-action-name scale-out-1945 --recurrence "45 10 * * *" --desired-capacity 5 \
--profile autoscaling

recurrenceにcronと同様の形式で時間はUTCで指定

これからは

EC2のAutoScalingから
Untitled (1).png

こうして
Untitled.png

この画面から設定すればOK
スクリーンショット 2016-02-03 17.06.56.png

繰り返しの項目は基本cron形式。一回のみや毎日、毎時等選択できるがUTC基準っぽいのでcronを推奨

それでは快適なAutoScaling環境を

5
5
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
5
5