January 2019
Intermediate to advanced
520 pages
14h 32m
English
The Serverless Framework also provides the ability to update resources automatically if you call sls deploy again. We can add this as a function to the deployment bash script:
update() { sls deploy }
This command is useful if you want to update the code of some of the lambdas, but don't want to leave the session maintained by Cognito.
To remove everything we deployed, we can use the following function:
remove() { echo "ASSETS REMOVING" sls client remove echo "LAMBDAS REMOVING" sls remove echo "ASSETS CLEANUP" rm -rf assets mkdir assets touch assets/.gitkeep }
It works because the Serverless Framework supports removing declared resources. I recommend you clean up everything after experimenting, because AWS will produce ...
Read now
Unlock full access