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 fbb335f commit 960be3aCopy full SHA for 960be3a
packer/linux/conf/bin/bk-mount-instance-storage.sh
@@ -1,6 +1,10 @@
1
#!/bin/bash
2
set -euxo pipefail
3
4
+# Write to system console and to our log file
5
+# See https://alestic.com/2010/12/ec2-user-data-output/
6
+exec > >(tee -a /var/log/elastic-stack.log|logger -t user-data -s 2>/dev/console) 2>&1
7
+
8
# Mount instance storage if we can
9
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html
10
0 commit comments