The osls deploy function command deploys an individual function without AWS CloudFormation. This command simply swaps out the zip file that your CloudFormation stack is pointing toward. This is a much faster way of deploying changes in code.
osls deploy function -f functionNameNote: This command deploys both function configuration and code by default. This puts your function in a state that is out of sync with your CloudFormation stack. Use this for faster development cycles and not production deployments.
Note: This command is not supported for functions configured with durableConfig locally or already deployed with durable configuration in AWS. Use osls deploy so osls can publish a new durable function version and retarget the generated durable alias.
--functionor-fThe name of the function which should be deployed. Required.--forceForces a deployment to take place.--stageor-sThe stage in your service that you want to deploy to.--regionor-rThe region in that stage that you want to deploy to.--update-configor-uPushes ONLY Lambda-level configuration changes e.g. handler, timeout or memorySize
osls deploy function --function helloWorldosls deploy function --function helloWorld \
--stage dev \
--region us-east-1osls deploy function --function helloWorld --update-config