Skip to content

Update artifact deployment process #1898

Closed

Description

@pmuens

The current artifact deployment process works as follows:

Create a .zip file with the content of the Serverless service, timestamp it and upload it to the S3 bucket. Also remove other versions of this file so that only 5 are kept.

However #1886 introduced the CloudFormation template storing in the S3 bucket.

The CloudFormation template is currently stored on the root level and is overwritten / not versioned on each deploy.

However versioning should be done for both, the .zip file and the CloudFormation template.

The Proposal is to do the following on deployment (brought up by @flomotlik):

How about for every deployment we create a separate directory and put the zip file and the CF template in that directory? Then the logic for removing old versions would simply be order directories by name (Imho directory should have a mix of timestamp and readable date, e.g. 141264711231-2016-08-18-15:48:32) so that it can be easily ordered by the first part of the timestamp but its still human readable.

And the Zip file and CF template in each directory could have the same name and if we want to add more artefacts in the future thats simple (e.g. nested stacks)

Activity

  1. added this to the milestone on Aug 19, 2016
  2. self-assigned this
    on Aug 19, 2016
  3. flomotlik commented on Aug 19, 2016

    @flomotlik
    Contributor

    Gogogo :D

  4. pmuens commented on Aug 19, 2016

    @pmuens
    ContributorAuthor

    Resolved with #1906

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions