Question:
I am using serverless to deploy my API on AWS.
In serverless, it allows to deploy a single function:
1 2 |
sls deploy -f |
But it doesn’t allow to remove a single function:
1 2 |
sls remove // will remove all functions. |
Is there any way to remove single function which won’t impact to other functions?
Answer:
@justin.m.chase suggested:
Simply remove the function in serverless.yml, then run full deploy
1 2 |
sls deploy |
the function is removed (Lambda + API Gateway). Perfecto!