A simple example demonstrating how to use post-deploy hooks:
- run
npm install
to grab the dependencies - run
npm start
to set up the lambda project under the default name on AWS - load the URL that the create command prints out -- you should see
from-create
- run
npm run deploy
to update the lambda with a different configuration in a post-deploy step - load the URL again, you should see
from-update
Check out package.json to see how the configuration parameter custom-message
is passed to these steps, and check out web.js, especially the like starting with api.addPostDeployStep
to see how the argument gets used to initialise stage variables.