Skip to content

Commit

Permalink
Update admin
Browse files Browse the repository at this point in the history
  • Loading branch information
magenx authored Sep 15, 2021
1 parent d68b98e commit 07d39f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion user_data/admin
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
_TIMER_USER_DATA_START="$(date -R)"

INSTANCE_LOCAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
INSTANCE_TYPE=$(curl -s http://169.254.169.254/latest/meta-data/instance-type)

## installation
apt-get update
Expand Down Expand Up @@ -236,7 +238,9 @@ chmod 750 /usr/bin/aws
_TIMER_USER_DATA_END="$(date -R)"

cat > /tmp/timer_user_data_log <<END
Instance uptime: $(uptime -s)
Instance: ${INSTANCE_NAME} - $${INSTANCE_ID} - $${INSTANCE_TYPE}
Uptime: $(uptime -s)
User data timer start: $${_TIMER_USER_DATA_START}
Command apt-get update: $${_TIMER_USER_DATA_APT}
useradd, git, mount ready: $${_TIMER_USER_DATA_MOUNT}
Expand Down

0 comments on commit 07d39f1

Please sign in to comment.