To deploy one or more functions all you need to do is run apex deploy
. Apex deploys are idempotent; a build is created
for each function, and Apex performs a checksum to see if the deployed function matches the local build, if so
it's not deployed.
After deploy Apex will cleanup old function's versions stored on AWS Lambda leaving only few. Number of retained versions can be specified in project or function configuration.
If you prefer to be explicit you can pass one or more function names to apex deploy
. You may also perform shell-style globbing matches with any command accepting function names, such as deploy
, logs
, and rollback
.
Deploy all functions in the current directory:
$ apex deploy
Deploy all functions in the directory "~/dev/myapp":
$ apex deploy -C ~/dev/myapp
Deploy specific functions:
$ apex deploy auth
$ apex deploy auth api
Deploy all functions which name starts with "auth":
$ apex deploy auth*
Deploy all functions ending with "_reporter".
$ apex deploy *_reporter