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.modules.tf/ @input/blueprint_my.json
# prod
$ http --print Hhb --all --follow https://prod.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
modules.tf can be self-hosted on your own infrastructure (if you want to expand it for some reason).
See modules.tf-infra repository for complete setup.
$ brew install codespell
$ pre-commit try-repo git://github.com/codespell-project/codespell codespell --all-files