-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (31 loc) · 845 Bytes
/
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
# https://serverless.com/framework/docs/providers/aws/guide/credentials/
STAGE ?= "prod"
dependencies: ## Install build dependencies
@echo "installing dependencies..."
@npm install --silent
package: dependencies ## Compile and package application
@echo "packaging function..."
@npx serverless \
package \
--stage $(STAGE)
deploy: ## Deploy application
@echo "deploying function..."
@npx serverless \
deploy \
--stage $(STAGE) \
--conceal
destroy: ## Destroy application
@echo "destroying function..."
@npx serverless \
remove \
--stage $(STAGE) \
logs: ## Fetches a stream of logs
@echo "fetching function logs..."
@npx serverless \
logs -f hello \
--stage $(STAGE)
invoke: ## Invoke function remotely (requires deployment)
@echo "invoking function..."
@npx serverless \
invoke -f hello \
--stage $(STAGE)