Amazon Linux 2
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
Amazon Linux 2が発表されました。
https://aws.amazon.com/jp/about-aws/whats-new/2017/12/introducing-amazon-linux-2/
ec2-metadata
[root@ip-10-5-32-70 ~]# ec2-metadata
ami-id: ami-2a34b64c
ami-launch-index: 0
ami-manifest-path: (unknown)
ancestor-ami-ids: not available
block-device-mapping:
ami: /dev/xvda
root: /dev/xvda
instance-id: i-071c4a39e70ae745b
instance-type: t2.nano
local-hostname: ip-10-5-32-70.ap-northeast-1.compute.internal
local-ipv4: 10.5.32.70
kernel-id: not available
placement: ap-northeast-1a
product-codes: not available
public-hostname: ec2-13-112-183-81.ap-northeast-1.compute.amazonaws.com
public-ipv4: 13.112.183.81
public-keys:
keyname:galaxy
index:0
format:openssh-key
key:(begins from next line)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCehg0RkIeCPg94jpFM7hqQXYWD8BdVyewE3836SnSA2lKsiHKmo+dhzZg8u70eDaevOXvQNrumXdJUWN76gemO9JB1IfjNjECZqRXOFc3yHheQMWbimcLAT3W39/MjXja2Amjy539qjfJ5blknQUPi3InnGae0TDutXQN1UX6oU3y5JBZOoi1kQi8Jth34LpoS5qXs/+i7DFlhNA7YXNzAqTnksbXPA6G7Ww0+xFLLTaXUfbhQydM3rkCU7ABGEUlodhU6BKFMmDltXEC9Q7nCghETZdFgF3lVTOOM3Tsb+e890+OcW7Nf3CGR57LABX+FwxvW2jGNarhWP9oR/8T1 galaxy
ramdisk-id: not available
reservation-id: r-0f55ec655c1e51a0b
security-groups: lithium-prod-web
user-data: not available
ami-id: ami-2a34b64c
uname
[root@ip-10-5-32-70 ~]# uname -a
Linux ip-10-5-32-70.ap-northeast-1.compute.internal 4.9.62-10.57.amzn2.x86_64 #1 SMP Wed Dec 6 00:07:49 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
amzn2
systemd support
[root@ip-10-5-32-70 ~]# ps u -p 1
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.8 1.0 125280 5256 ? Ss 04:28 0:01 /usr/lib/systemd/systemd --switched-root --system --deserialize 21
Python
記事にはこう書いてあります。
Additional software packages, including the newer versions of popular software packages such as Python, MariaDB, Node.js, are available for installation using the Amazon Linux Extras repository.
さぞ新しいバージョンが入っていることでしょう。
the newer versions
[root@ip-10-5-32-70 ~]# python --version
Python 2.7.5
これだから…