deployless
accepts two "verbs":
deployless create
deployless update
The create
verb requires a few arguments:
-
bucket
, e.g.bucket=deployless-bucket
: The S3 bucket to save the code. -
role
, e.g.role=999999999
: The AMI role for the lambda function -
name
, e.g.name=handleDeploy
: The function name.
The update
verb requires a few arguments:
-
bucket
, e.g.bucket=deployless-bucket
: The S3 bucket to save the code. -
name
, e.g.name=handleDeploy
: The function name.
handler
, e.g. handler=deploy
: The name of the exports.handler
if it's different than the function name.
If handler
is not specified than the name
will be used.
file
, e.g. file=file.js
: The function file.
key
, e.g. key=deploy.zip
: The name of the file in S3.
Specify additional support files that need to be zipped up by adding them as extra arguments: deployless create bucket=test file=file.js ./support.js ./module.js