-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
target:
$(info ${HELP_MESSAGE})
@exit 0
dev:
poetry install
format:
poetry run isort .
poetry run black functions
poetry run black layers
lint: format
poetry run flake8
init:
$(info [*] Bootstrapping CI system...)
@$(MAKE) _install_os_packages
invoke.get_readable_products_function:
sam build && clear && sam local invoke \
-e functions/get_readable_products/event.json \
GetReadableProductsFunction
invoke.add_products_to_new_world_basket:
sam build && clear && sam local invoke \
-e functions/add_products_to_new_world_basket/event.json \
AddProductsToNewWorldBasketFunction
deploy:
sam build && sam deploy --no-confirm-changeset
_install_os_packages:
python3 -m pip install --upgrade --user cfn-lint aws-sam-cli poetry
define HELP_MESSAGE
Common usage:
...::: Bootstraps environment with necessary tools like SAM CLI, cfn-lint, etc. :::...
$ make init
...::: Deploy all SAM based services :::...
$ make deploy
...::: Test Lambda :::...
$ make invoke.get_readable_products_function
endef