-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbootstrap.sh
executable file
·63 lines (48 loc) · 1.28 KB
/
bootstrap.sh
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
#!/bin/sh
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
export AWS_PAGER=""
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
REGION=$(./get_region.sh)
echo "Bootstrapping DevOps Guru EKS Test Harness in $REGION for $AWS_ACCOUNT_ID"
echo "Bootstrap initial cluster and node group"
(
cd cluster_bootstrap && sh create_cluster.sh || exit 1
)
echo "Install kube dashboard"
(
cd kubernetes_dashboard && sh install_dashboard.sh || exit 1
)
echo "Install ChaosMesh"
(
cd chaos_mesh && sh install_chaos_mesh.sh || exit 1
)
echo "Install prometheus"
(
cd prometheus && sh install_prometheus.sh || exit 1
)
echo "Install Kong"
(
cd kong && sh install_kong.sh || exit 1
)
echo "Add ALB controller"
(
cd aws_load_balancer_controller && sh create_load_balancer_controller.sh || exit 1
)
echo "Create ECR repo"
(
cd ecr && sh create_repo.sh || exit 1
)
echo "Install Redis"
(
cd redis && sh install_redis.sh || exit 1
)
echo "Build and install test deployment"
(
cd devopsguru_eks_test && sh build.sh && sh install_chart.sh || exit 1
)
echo "Install test client requirements"
(
cd test_client && pip3 install -r requirements.txt || exit 1
)
echo "=== DevOps Guru EKS Test Harness Installation Finished ==="