DEV Community

Discussion on: AWS CDK: Lambda Versioning

Collapse
 
rehanvdm profile image
Rehan van der Merwe

I always duplicate the code and make a whole new API GW like you suggest in your Alternative Solutions. Have had too many times where we had to change/fix a bug in the older version. Also if you loose the Lambda, you loose your version history, that seems very risky?

Collapse
 
_gerald20 profile image
Gerald Stewart

That's actually sort of relieving to hear! After I ran these by the rest of the team we decided to go with that for that reason.