-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
37 lines (26 loc) · 851 Bytes
/
Justfile
File metadata and controls
37 lines (26 loc) · 851 Bytes
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
### Default Just Command ###
@_default:
just --list --unsorted
### Cargo Lambda ###
@watch:
cargo lambda watch --env-vars USER_POOL_CLIENT_ID=REDACTED
@invoke function="":
cargo lambda invoke --data-file functions/account-create/fixtures/events/account-create.json {{function}} | jq '.body |= fromjson'
@build target="":
if [ "{{target}}" != "" ]; then \
cargo lambda build --release --arm64 --output-format zip --package {{target}}; \
else \
just build account-create; \
just build account-confirm; \
fi
## Tofu ###
@init workspace="main":
tofu -chdir={{workspace}} init
@plan workspace="main":
tofu -chdir={{workspace}} plan
@apply workspace="main":
tofu -chdir={{workspace}} apply
@destroy workspace="main":
tofu -chdir={{workspace}} destroy
@refresh workspace="main":
tofu -chdir={{workspace}} refresh