Skip to content

Add DRYrun support #1496

Closed
Closed

Description

@pmuens

The deploy plugin should take the option --dryRun.

This option will stop the removal of the .serverless directory in the package plugin and will e.g. save the CloudFormation file in the .serverless directory (in the awsDeploy plugin).

This way the user gets all the resources but won't have to deploy them to his provider.

Is also discussed in #1486

Activity

  1. added this to the milestone on Jul 6, 2016
  2. johncmckim commented on Aug 10, 2016

    @johncmckim
    Contributor

    @pmuens @flomotlik adding this is going to make testing #1777 easier as I will be able to test packaging without the deployment. Perhaps I could add support for this first?

  3. pmuens commented on Aug 10, 2016

    @pmuens
    ContributorAuthor

    Great that you would like to take this one @johncmckim!

    What are your thoughts / plans on how to implement it? Should we add another command to the deploy plugin or use an option for deploy (like mentioned in the issue description).

    IMHO it should be a separate command / plugin so that we don't spread multiple ifs which will check for the dryrun option across files.

    So it could be serverless dryrun or serverless deploy dryrun which will cause the package plugin to create the deployment artifacts and the creation of the CloudFormation file which both will be saved into the .serverless directory (which won't be cleaned up).

    What are your thoughts @flomotlik @eahefnawy

  4. johncmckim commented on Aug 10, 2016

    @johncmckim
    Contributor

    @pmuens since this is a small change I actually started it before you replied so I could see how the deployment process works.

    I implemented it as described via a flag. To do this did involve spreading multiple ifs around. The end result is also more of a package or build process rather than a dryRun deploy.

    I think it makes more sense as a separate command i.e. serverless package.

    I'll send a WIP PR so you can see what I've done and trial it.

  5. pmuens commented on Aug 10, 2016

    @pmuens
    ContributorAuthor

    Hey @johncmckim thank you for your reply and the work on the PR! 🎉

    Will look into it ASAP!

  6. modified the milestones: v1.0.0-beta.2, on Aug 10, 2016
  7. pmuens commented on Aug 10, 2016

    @pmuens
    ContributorAuthor

    @johncmckim thanks again 🎉

    Just added my thoughts in the PR.

    The gist of this is that we should reconsider the implementation to be a plugin we can use to produce the deployment artifacts without deploying it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions