- Build: run
serverless package
, and cache the packaged content - Deploy: load the cached package, run
serverless deploy
with the--package
option and save time on packaging.
- Easier to troubleshoot
- There's a known issue with serverless-plugin-typescript building too slowly. The more functions per stack, the slower the build is. If deployment fails because of some IAM permission issues, we can re-run from failed and save some time on the build. The built artifacts are already cached using
save_cache
, we just need to load them - In the future we can integrate with an artifactory (e.g. JFrog etc)