Skip to content

Commit 07d39f1

Browse files
authored
Update admin
1 parent d68b98e commit 07d39f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

user_data/admin

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
_TIMER_USER_DATA_START="$(date -R)"
88

99
INSTANCE_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
1214
apt-get update
@@ -236,7 +238,9 @@ chmod 750 /usr/bin/aws
236238
_TIMER_USER_DATA_END="$(date -R)"
237239

238240
cat > /tmp/timer_user_data_log <<END
239-
Instance uptime: $(uptime -s)
241+
Instance: ${INSTANCE_NAME} - $${INSTANCE_ID} - $${INSTANCE_TYPE}
242+
Uptime: $(uptime -s)
243+
240244
User data timer start: $${_TIMER_USER_DATA_START}
241245
Command apt-get update: $${_TIMER_USER_DATA_APT}
242246
useradd, git, mount ready: $${_TIMER_USER_DATA_MOUNT}

0 commit comments

Comments
 (0)