File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 77_TIMER_USER_DATA_START=" $( date -R) "
88
99INSTANCE_LOCAL_IP=$( curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
10+ INSTANCE_ID=$( curl -s http://169.254.169.254/latest/meta-data/instance-id)
11+ INSTANCE_TYPE=$( curl -s http://169.254.169.254/latest/meta-data/instance-type)
1012
1113# # installation
1214apt-get update
@@ -236,7 +238,9 @@ chmod 750 /usr/bin/aws
236238_TIMER_USER_DATA_END=" $( date -R) "
237239
238240cat > /tmp/timer_user_data_log << END
239- Instance uptime: $( uptime -s)
241+ Instance: ${INSTANCE_NAME} - $$ {INSTANCE_ID} - $$ {INSTANCE_TYPE}
242+ Uptime: $( uptime -s)
243+
240244User data timer start: $$ {_TIMER_USER_DATA_START}
241245Command apt-get update: $$ {_TIMER_USER_DATA_APT}
242246useradd, git, mount ready: $$ {_TIMER_USER_DATA_MOUNT}
You can’t perform that action at this time.
0 commit comments