serverless / serverless-meta-sync

Secure syncing of serverless project meta data across teams
44 stars 14 forks source link

Support for syncing the stages #9

Open dijitalmunky opened 8 years ago

dijitalmunky commented 8 years ago

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.

JamieCressey commented 8 years ago

+1

FreeWillaert commented 8 years ago

+1