serverless-meta-sync icon indicating copy to clipboard operation
serverless-meta-sync copied to clipboard

Support for syncing the stages

Open dijitalmunky opened this issue 8 years ago • 2 comments

Serverless-meta-sync should be able to support syncing the stages as well. Currently the steps to sync a new local copy is a little long:

  1. Clone the repo
  2. Run sls project init - this is good, because it sets the creds that will be used to talk with AWS. you also need to create a stage, which isn't necessarily a bad thing either if you are using a stage per dev.
  3. Run sls stage create multiple time and create each of the common stages (e.g. dev, staging, prod, etc). This is error prone because people need to type things in manually.
  4. Run sls meta sync multiple times to sync the stage data.

steps 3 and 4 above are error prone because of the manual input that is needed. In addition, it can be a little annoying to type all those commands. It would be nice if steps 3 and 4 above could be handled by the plugin.

One solution would be to add a flag to meta sync to sync stages. Another (better from the UX perspective) would be to hook into the project init event and pull the stages and metadata down from s3 once the user enters their creds.

dijitalmunky avatar Mar 31 '16 16:03 dijitalmunky

+1

JamieCressey avatar May 04 '16 19:05 JamieCressey

+1

FreeWillaert avatar Sep 26 '16 12:09 FreeWillaert