-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevbox.json
37 lines (37 loc) · 1.21 KB
/
devbox.json
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
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.6/.schema/devbox.schema.json",
"packages": [
"terraform-docs@latest",
"terraform@latest",
"pre-commit@latest",
"tflint@latest",
"trivy@latest",
"checkov@latest",
"kubernetes-helm@latest",
"commitizen@latest",
"typos@latest",
"codespell@latest",
"doctoc@latest",
"gitleaks@latest",
"actionlint@latest",
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null",
"pre-commit install",
"cd $DEVBOX_PROJECT_ROOT/cluster && terraform init -upgrade",
"cd $DEVBOX_PROJECT_ROOT/config && terraform init -upgrade",
],
"scripts": {
"install_cluster": [
"cd $DEVBOX_PROJECT_ROOT/cluster && terraform apply",
"aws eks update-kubeconfig --name `terraform output eks_cluster_name` --alias `terraform output eks_cluster_name` --role-arn `terraform output assume_eks_admins_role`",
"kubectl --context `terraform output eks_cluster_name` get nodes",
"kubectl --context `terraform output eks_cluster_name` get pods -A",
],
"install_config": [
"cd $DEVBOX_PROJECT_ROOT/config && terraform apply",
],
},
},
}