We have two steps in the deploy stage: “Stack A” and “Stack B”. Currently “Stack A” deploys lambda together with API Gateway “/complete” path.
We need to move the lambda to “Stack B”. So we removed it from serverless.yml “Stack A” and added it to “Stack B”.
To avoid issues related to trying to deploy “/complete” path with “Stack B” before “Stack A” with removed “/complete” path will be deployed, we made deployment of “Stack B” dependent on successful deployment of “Stack A”.
Unfortunately, this means that we have to expect downtime on path “/complete” between deployment of “Stack A” with removed “/complete” and deployment of “Stack A” with added “/complete”.
Is there any way to do it without downtime on /complete?