Im loving serverless, however, except one thing…
I have several AWS lambda functions managed by git, say:
LambdaFunctionXXX
I want to avoid the changing of LambdaFunctionXXX affect live API Gateway.
Then I create several API Stage, and refer API to different lambda
dev_API : dev_LambdaFunctionXXX
it_API : it_LambdaFunctionXXX
Then I use serverless to deploy lambda, and define stage in a variable yml file, and refer this value in serverless.yml stage configure, firstly I use dev stage and dev_LambdaFunctionXXX, however, while Im changing stage value to it, it_LambdaFunctionXXX has deployed but dev_LambdaFunctionXXX has been removed, Is there any way I can remain both lambda functions ?
BTW, I have also tried to use service name, while Im using string, it can have both lambda functions deployed, while Im using value referred from another file, it cannot. Anyone can help me? thanks