As a short cheatsheet, you will need to use these commands:
- Invoke real endpoint in
devandprodenvironments using httpie:
# dev
$ http --print Hhb --all --follow https://dev-lambda.modules.tf/ @input/blueprint_my.json
# prod
$ http --print Hhb --all --follow https://lambda.modules.tf/ @input/blueprint_my.json
- Invoke function locally providing
input.json:
$ serverless invoke local --function generate-cloudcraft --path test_fixtures/input_localfile.json
- Deploy all functions to
prodenvironment:
$ serverless deploy --stage prod
- Deploy single function to
devenvironment:
$ serverless deploy function --function generate-cloudcraft --stage dev
- Deploy single function to
prodenvironment:
$ serverless deploy function --function generate-cloudcraft --stage prod
$ brew install codespell
$ pre-commit try-repo git://github.com/codespell-project/codespell codespell --all-files