Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish version when updating lambda code #365

Closed
mtrbean opened this issue Jun 2, 2017 · 2 comments
Closed

publish version when updating lambda code #365

mtrbean opened this issue Jun 2, 2017 · 2 comments

Comments

@mtrbean
Copy link

mtrbean commented Jun 2, 2017

I think it's handy to be able to optionally enable lambda code versioning (essentially setting publish=True when updating lambda function). This allows people to do a quick manually rollback if anything goes wrong.

@jamesls
Copy link
Member

jamesls commented Jul 11, 2017

Hi, sorry about the delay here. I'd like to hear more about this use case. This was something that was considered a while ago (#20), and I think there might have been a branch that implemented that around here somewhere. The thing that I found is that it gets problematic if you manually roll back via versioning/aliasing outside of chalice then it's easy to get out of sync with what you have locally in your git repo vs. what's actually running on lambda. Taking into account we now support multi lambda functions (which are all deployed together as part of chalice deploy) as well as things that are dependent on the code in your lambda function (e.g the auto policy generation which scans your source code), it seemed more straightforward to just rollforward a change (i.e revert a commit in your git repo and rerun chalice deploy). That combined with stages made it easier to test out changes before deploying to prod.

Open to suggestions though, would be interested in any use cases I'm missing.

@stealthycoin
Copy link
Contributor

Closing due to inactivity. Feel free to reopen this to share your use case with us.

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

No branches or pull requests

3 participants