LambStatus icon indicating copy to clipboard operation
LambStatus copied to clipboard

Auto update?

Open benjisoft opened this issue 7 years ago • 2 comments

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.

benjisoft avatar Apr 08 '17 15:04 benjisoft

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.

ks888 avatar Apr 15 '17 06:04 ks888

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

benjisoft avatar Apr 16 '17 10:04 benjisoft