I'm rather new to AWS Lambda and Step Functions, and the serverless framework in general. From my understanding, we can deploy an entire service via CloudFormation using the command serverless deploy
. However to save time, we can just update specific Lambda functions we have made changes to, by using serverless deploy function -f myFunction
.
Is there an equivalent of this for Step Functions so that I don't have to redeploy the entire service whenever I only make a change to the Step Function? I have already tried serverless deploy function -f myStepFunction
but I simply get a Serverless Error that it does not exist in the Service.
You have to use the step functions plugin, using this you first do sls deploy
which will deploy the state machine for you.
Now if you don't change the state machine diagram, then you can simply do sls deploy -f functionName
to deploy the individual functions.