-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
55 lines (41 loc) · 879 Bytes
/
Justfile
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
lint:
pre-commit run -a
reqs:
pip install -U pip -r requirements.txt
serve:
mkdocs serve --no-strict
prod-build:
CI=true mkdocs build
word-count:
find docs/posts/ docs/codes/ -type f ! -path '*terra*' ! -name tfplan -print | xargs wc -w
[no-cd]
init:
terragrunt init -upgrade
[no-cd]
plan *args:
terragrunt plan -out tfplan {{args}}
[no-cd]
apply:
terragrunt apply tfplan
[no-cd]
output *args:
terragrunt output {{args}}
[no-cd]
fmt:
tofu fmt -recursive
terragrunt run-all hclfmt --terragrunt-non-interactive
checkov:
checkov --config-file .checkov_config.yaml -d .
[no-cd]
checkov-here:
checkov -d .
[no-cd]
create-tofu-stack dirname:
#!/usr/bin/env bash
mkdir -p {{dirname}}
touch {{dirname}}/{main,versions,variables,outputs}.tf
touch {{dirname}}/terragrunt.hcl
cat <<'EOF' > {{dirname}}/terragrunt.hcl
inputs = {
}
EOF