ks888 / LambStatus

[Maintenance mode] Serverless Status Page System
https://lambstatus.github.io
Apache License 2.0
1.3k stars 120 forks source link

Auto update? #20

Open benji-lewis opened 7 years ago

benji-lewis commented 7 years ago

At the moment, to my knowledge, the only way to update is through a whole new AWS CF Stack. I was wondering if Lambda could be used somehow to auto update when a new update is pushed on github.

ks888 commented 7 years ago

Sorry for the late reply.

You can update the existing stack by applying the new CF template. For example, if you want to try v0.2.1 (the version I've released a few days ago), follow the steps below.

  1. Open the CloudFormation page of the AWS console, and select the target stack.

    screen shot 2017-04-15 at 14 51 10
  2. Choose Update Stack action.

    screen shot 2017-04-15 at 14 52 02
  3. Specify an Amazon S3 template URL.

    The template url for v0.2.1 is: https://s3-ap-northeast-1.amazonaws.com/lambstatus/cf-template/0.2.1/lamb-status.yml

    screen shot 2017-04-15 at 14 53 40
  4. Click the Next button a few times, then click the Update button.

Please try out if possible! I will add these steps to the document.

The auto update is attractive, but the problem is the status system will be unstable during the update. For example, the lambda function the frontend app calls may not exist. So I think it is safer to not-update the system automatically.

benji-lewis commented 7 years ago

You could add a temporary maintenance page during the update. If that is possible with lambda.