You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws/build-an-deploy-aws.sh
+71-57Lines changed: 71 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,10 @@ echo "Make sure you have updated your AWS credentials and your kubeconfig prior
5
5
echo"For this to work the AWS kubernetes cluster must have access to the same local registry / image cache which 'docker build ...' writes its image to"
6
6
echo"For example docker-desktop with its included k8s cluster"
7
7
8
-
echo"NOTE: WE ARE WORKING HERE WITH A 5 LEGGED BALANCER on aWS which costs money by themselves!"
8
+
echo"NOTE: WE ARE WORKING HERE WITH A 5 LEGGED LOAD BALANCER on AWS which costs money by themselves!"
9
9
10
-
echo"NOTE2: please replace balancer.cookie.cookieParserSecret witha value you fanchy and ensure you have TLS on (see outdated guides)."
10
+
echo"NOTE 2: You can replace balancer.cookie.cookieParserSecret with a value you fancy."
11
+
echo"Note 3: Ensure you turn TLS on :)."
11
12
12
13
echo"Usage: ./build-an-deploy-aws.sh "
13
14
@@ -17,17 +18,10 @@ checkCommandsAvailable helm aws kubectl eksctl sed
17
18
iftest -n "${AWS_REGION-}";then
18
19
echo"AWS_REGION is set to <$AWS_REGION>"
19
20
else
20
-
AWS_REGION=eu-west-1
21
+
exportAWS_REGION=eu-west-1
21
22
echo"AWS_REGION is not set or empty, defaulting to ${AWS_REGION}"
22
23
fi
23
24
24
-
iftest -n "${CLUSTERNAME-}";then
25
-
secho "CLUSTERNAME is set to <$CLUSTERNAME> which is different than the default. Please update the cluster-autoscaler-policy.json."
26
-
else
27
-
CLUSTERNAME=wrongsecrets-exercise-cluster
28
-
echo"CLUSTERNAME is not set or empty, defaulting to ${CLUSTERNAME}"
0 commit comments