We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9689da7 commit 714357aCopy full SHA for 714357a
startup.sh
100644
100755
@@ -24,6 +24,11 @@ case "${NETWORK}" in
24
;;
25
esac
26
27
+# Am I on ec2 instances?
28
+if [[ ${zone} == "unknown" ]]; then
29
+ zone=$(curl -m2 -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r '.availabilityZone' | cut -f3 -d-)
30
+fi
31
+
32
export CODE_HASH="$(cat code_hash.txt)"
33
export AZ="${IP} in AZ-${zone}"
34
0 commit comments