forked from antonbabenko/modules.tf-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a691da
commit 40b1c95
Showing
4 changed files
with
70 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Notes for developers | ||
|
||
As a short cheatsheet, you will need to use these commands: | ||
|
||
* Invoke real endpoint in `dev` and `prod` environments using [httpie](https://github.com/jakubroztocil/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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Known issues in modules.tf-lambda | ||
|
||
* Serverless framework version shouldn't be newer than 1.51.0 unless [this](https://github.com/serverless/serverless/issues/6752) and [this](https://github.com/UnitedIncome/serverless-python-requirements/issues/414) bugs are fixed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters