File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ trap '[[ $? = 0 ]] && on_exit' EXIT
25
25
# See https://alestic.com/2010/12/ec2-user-data-output/
26
26
exec > >( tee -a /var/log/elastic-stack.log | logger -t user-data -s 2> /dev/console) 2>&1
27
27
28
+ echo " Starting ${BASH_SOURCE[0]} ..."
28
29
29
30
echo Sourcing /usr/local/lib/bk-configure-docker.sh...
30
31
echo This file is written by the scripts in packer/scripts.
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ trap '[[ $? = 0 ]] && on_exit' EXIT
41
41
# See https://alestic.com/2010/12/ec2-user-data-output/
42
42
exec > >( tee -a /var/log/elastic-stack.log | logger -t user-data -s 2> /dev/console) 2>&1
43
43
44
+ echo " Starting ${BASH_SOURCE[0]} ..."
45
+
44
46
# This needs to happen first so that the error reporting works
45
47
token=$( curl -X PUT -H " X-aws-ec2-metadata-token-ttl-seconds: 60" --fail --silent --show-error --location http://169.254.169.254/latest/api/token)
46
48
INSTANCE_ID=$( curl -H " X-aws-ec2-metadata-token: $token " --fail --silent --show-error --location http://169.254.169.254/latest/meta-data/instance-id)
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ trap '[[ $? = 0 ]] && on_exit' EXIT
22
22
# See https://alestic.com/2010/12/ec2-user-data-output/
23
23
exec > >( tee -a /var/log/elastic-stack.log | logger -t user-data -s 2> /dev/console) 2>&1
24
24
25
+ echo " Starting ${BASH_SOURCE[0]} ..."
26
+
25
27
# Mount instance storage if we can
26
28
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html
27
29
You can’t perform that action at this time.
0 commit comments