AWS - Deploy Function
June 28, 2026 · View on GitHub
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 functionName
Note: 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.
Options
--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
Examples
Deployment without stage and region options
osls deploy function --function helloWorld
Deployment with stage and region options
osls deploy function --function helloWorld \
--stage dev \
--region us-east-1
Deploy only configuration changes
osls deploy function --function helloWorld --update-config