There are three steps involved in deploying a serverless stack:
- Build Lambda as a ZIP package
- Package your serverless stack using SAM and CloudFormation
- Deploy your serverless stack using SAM and CloudFormation
There are three steps involved in deploying a serverless stack:
Install ZIP if it is not installed already. For Ubuntu/Debian, you can use sudo apt-get install zip -y. Create a file called create-lambda-package.sh with the following content:
#!/bin/sh #setup environment variables . ./common-variables.sh #Create Lambda package and exclude the tests to reduce package size (cd ../../lambda_dynamo_read; mkdir -p ../package/ zip -FSr ../package/"${zip_file}" ${files} -x *tests...