Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.02 KB

File metadata and controls

44 lines (30 loc) · 1.02 KB

Notes for developers

As a short cheatsheet, you will need to use these commands:

  • Invoke real endpoint in dev and prod environments 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 prod environment:
$ serverless deploy --stage prod
  • Deploy single function to dev environment:
$ serverless deploy function --function generate-cloudcraft --stage dev
  • Deploy single function to prod environment:
$ serverless deploy function --function generate-cloudcraft --stage prod

Spellchecker

$ brew install codespell
$ pre-commit try-repo git://github.com/codespell-project/codespell codespell --all-files