Skip to content

Option to disable Lambda versioning #2871

Closed

Description

@pmuens

This is a Feature Proposal

Description

Right now Lambda versioning is turned on by default. It would be great to have a way to turn it off again.

We could implement it like this (provider level means global, function level overwrites provider level):

provider:
  versionLambda: false

functions:
  foo:
    versionLambda: false

Activity

  1. mthenw commented on Dec 6, 2016

    @mthenw
    Contributor

    What is the reason for disabling this?

  2. pmuens commented on Dec 6, 2016

    @pmuens
    ContributorAuthor

    Created it based upon feedback from this PR #2676

  3. mthenw commented on Dec 6, 2016

    @mthenw
    Contributor

    @WooDzu @ajagnanan could you share more info why would you like do disable this?

  4. ajagnanan commented on Dec 6, 2016

    @ajagnanan

    Yea, I don't think we need to track every version in all stages, for instance, i currently have 17 versions of 19 lambdas during my dev stage. My current lambda storage increased to 11gb. It also takes longer to deploy. It would be awesome to have this disabled during dev and enabled when CI/CD deploys to the other stages. Versioning also means that having a way to clean up versions would be needed too.

  5. pgasiorowski commented on Dec 7, 2016

    @pgasiorowski

    We already use versioning in the URL path (eg. /api/v1) to guard against breaking changes and maintain integration tests for all endpoints.
    My concern is mainly related to security with sharing an internal API with clients - don't want to keep a lambda version that 1. has not been tested well enough 2. got there by mistake 3. might include vulnerability. The overhead of maintaining additional versions is not something we are waiting for. Having said that I understand the purpose of versioning lambdas and know there are good use cases.

  6. pmuens commented on Jan 30, 2017

    @pmuens
    ContributorAuthor

    Closing this since it's resolved with #3042

  7. rjtlinux commented on Jul 5, 2023

    @rjtlinux

    How to disable the lambda version through cloudformation?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions