LoginSignup
0
0

More than 5 years have passed since last update.

serverless frameworkを使ってec2を起動 / 停止するスケジュールを組む

Posted at

作った理由

ec2で動かしているバッチサーバーの節約のため

最近、serverless framework勉強したから
awsの各サービスの画面ポチポチをコードで管理できて素敵ですよね。。

使い方

  1. custom.dev.yml をcustom.ymlに編集し
    必要なパラメータを打ち込む

  2. serverless.ymlのfunctionsにスケジューリングを記載する

  3. あとは、devなりprodなりデプロイをするだけ

$ serverless deploy -v --stage=dev

Github

Todo

slackに通知するようにしたい

参考

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