There is a following setup:
- 2 lambda functions, deployed using
serverless.yml
- custom domain (e.g.
api.mydomain.com
) attached to API Gateway - 2 stages (
dev
andprod
) - CNAME configuration in my domain to point to
abcdefg.cloudfront.net
There's a high-level task to update two lambda functions without the downtime for the API that they are serving. How to do it using serverless framework?
Note: there are two ways to manage lambda deployments: stages and aliases (versions). Currently aliases do not work in serverless (there's a fork that hotfixes the issue, but it does not matter atm).