-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·140 lines (92 loc) · 3.13 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Makefile
all: engine-start engine-dev engine-install api-get-all api-get-one api-add-one api-delete-one api-delete-all list-functions function-get-one function-deploy function-update function-invoke function-delete-one function-delete-all clean check-variables cdk-bootstrap cdk-install list-stacks get-stack-outputs list-buckets delete-buckets
profile ?= default
# desktop-admin
executable:
chmod -R +x .
list-stacks:
./scripts/stacks/list-stacks.sh $(profile)
list-buckets:
./scripts/s3/list-buckets.sh $(profile)
list-functions:
./scripts/function/list-functions.sh $(profile)
delete-stack:
./scripts/stacks/delete-stack.sh $(profile) $(stack)
delete-buckets:
./scripts/s3/delete-buckets.sh $(profile)
delete-functions:
./scripts/function/delete-functions.sh $(profile)
get-stack-outputs:
./scripts/stacks/get-stack-outputs.sh $(profile) $(stack)
clean:
pnpm clean
login:
./scripts/admin-cloud/login.sh
bootstrap:
./scripts/admin-cloud/bootstrap.sh
cdk-install:
pnpm cdk-install
cdk-deploy:
pnpm cdk-deploy
cdk-frontend:
pnpm cdk-frontend
cdk-destroy:
pnpm cdk-destroy
check-variables:
./scripts/admin-desktop/check-variables.sh
app-dev:
./scripts/app-dev.sh
app-test:
./scripts/app-test.sh
app-install:
./scripts/app-install.sh
# functions
# call with function=<function-name>
# eg make function-deploy function=my-function
# a call with no args will have default args applied from the variables file
function-get-one:
./scripts/function/function-get-one.sh $(function)
function-deploy:
./scripts/function/function-deploy.sh $(function)
function-update:
./scripts/function/function-update.sh $(function)
function-invoke:
./scripts/function/function-invoke.sh $(function)
function-delete-one:
./scripts/function/function-delete-one.sh $(function)
function-delete-all:
./scripts/function/function-delete-all.sh
# apis
# call with api=<api-name> function=<function-name>
# eg make api-add-one api=my-api function=my-function
api-get-all:
./scripts/api/api-get-all.sh
api-get-one:
./scripts/api/api-get-one.sh $(api)
api-add-one:
./scripts/api/1-api-add-one.sh $(api) $(function)
api-delete-one:
./scripts/api/api-delete-one.sh $(api)
api-delete-all:
./scripts/api/api-delete-all.sh
api-create-integration:
./scripts/api/2-api-create-integration.sh $(api) $(function)
api-get-all-integrations:
./scripts/api/api-get-all-integrations.sh $(api)
api-grant-permissions:
./scripts/api/3-api-grant-permissions.sh $(function) $(api)
api-cleanup:
./scripts/api/4-api-cleanup.sh
# engine
engine-install:
pnpm --prefix ./engine install
engine-dev:
pnpm --prefix ./engine dev
engine-start:
pnpm --prefix ./engine start
engine-clean:
pnpm --prefix ./engine clean
# extras
api-create-default-route:
./scripts/api/3-api-create-default-route.sh $(api) $(integration)
.PHONY: all engine-start engine-dev engine-install api-get-all api-get-one api-add-one api-delete-one api-delete-all list-functions function-get-one function-deploy function-update function-invoke function-delete-one function-delete-all clean check-variables cdk-bootstrap cdk-install list-stacks get-stack-outputs delete-stack list-buckets delete-buckets