简体   繁体   中英

Best way to version AWS Lambda

We have just released some AWS Lambda's, only stage I can see is test. Now, should we create a prod stage and publish them to that? Would this then mean I can work on the test/dev ones if changes need changing and this won't affect the prod stage ones?

Thanks

You can always create a new version each time a lambda is published. Assign different aliases like dev, test and prod as pointer to certain version. Always refer to a Lambda by Alias along with name from different applications(never with just version)

Or Simply create three different lambdas with names, simply suffixing -dev, -qa, etc and not worry about versions or aliases.

I am using Aliases now, seems to work well and is built-in.

Using event bridge rules to trigger lambda's either via S3 and API Gateway.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM