Deploy an aws lambda without CloudFormation

is there a way to deploy a function without CloudFormation stack?
in the same way aws command-line does:

aws lambda create-function \
--region us-east-1 \
--function-name [function_name] \
--zip-file fileb://[zip_file] \
--role [role]  \
--handler  [function_name].[event_handler] \


1 Like

Mostly no.

You can update the code for an existing function using:

sls deploy function -f <function-name>

If you want to deploy a new function, or update/remove an existing function you need to deploy the stack using CloudFormation which happens when you do an

sls deploy