Help us understand the problem. What is going on with this article?

AWS Lambdaのマシンスペック、/usr/bin、/bin、/sbin、/usr/sbin、環境変数 を調べてみる

More than 3 years have passed since last update.

はじめに

AWS LambdaのFAQには、こんな記載があります。

Q: コンピューティングリソースはどのように AWS Lambda に割り当てられるのですか?

AWS Lambda のリソースモデルでは、お客様が関数に必要なメモリ量を指定するとそれに比例した CPU パワーとその他のリソースが割り当てられます。たとえば、256 MB のメモリを指定すると約 2 倍の CPU パワーが Lambda 関数に割り当てられます。128 MB のメモリを指定した場合と比較すると CPU パワーは倍となり、512 MB のメモリを指定した場合と比較すると半分になります。メモリは 128 MB から 1.5 GB まで、64 MB ごとに増加できます。

では、「AWS Lambdaの実行マシンは実際のところ何なんだ?」という疑問が浮かび、調べてみました。

結果

メモリ量が128MBのときも、1536MBのときも

  • Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
  • 2 core

EC2のC4.large相当でした。

調査プログラム

disp.js
'use strict';

console.log('Loading event');

exports.handler = function(event, context) {
    var exec = require('child_process').exec;

    var cmd = "cat /proc/cpuinfo && free -m && cat /etc/system-release && df && /sbin/ifconfig";
    var child = exec(cmd, function(error, stdout, stderr) {
        if (!error) {
            console.log('\n### standard out:\n' + stdout);
            console.log('\n### standard error:\n' + stderr);
            context.done();
        } else {
            console.log("error code: " + error.code + "err: " + error);
            context.done(error,'lambda');
        }
    });
};

詳細ログ

/tmpの割り当てられるディスクや、マックアドレスが毎回異なっていることが分かりますね。

128MB

START RequestId: 7d1b41a1-9881-11e6-a26a-819f8bb861df Version: $LATEST
2016-10-22T18:01:00.234Z    7d1b41a1-9881-11e6-a26a-819f8bb861df    
### standard out:
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 63
model name  : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
stepping    : 2
microcode   : 0x25
cpu MHz     : 2900.080
cache size  : 25600 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 1
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt
bugs        :
bogomips    : 5800.16
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model       : 63
model name  : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
stepping    : 2
microcode   : 0x25
cpu MHz     : 2900.080
cache size  : 25600 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 1
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt
bugs        :
bogomips    : 5800.16
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

             total       used       free     shared    buffers     cached
Mem:          3767        511       3255          0         12        339
-/+ buffers/cache:        160       3607
Swap:            0          0          0
Amazon Linux AMI release 2016.03
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/xvda1      30830568 2777496  27952824  10% /
/dev/loop2        538424     440    526148   1% /tmp
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vsb_3     Link encap:Ethernet  HWaddr 52:5F:3C:1C:9C:14  
          inet addr:169.254.76.5  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4649 (4.5 KiB)  TX bytes:2624 (2.5 KiB)


2016-10-22T18:01:00.234Z    7d1b41a1-9881-11e6-a26a-819f8bb861df    
### standard error:

END RequestId: 7d1b41a1-9881-11e6-a26a-819f8bb861df
REPORT RequestId: 7d1b41a1-9881-11e6-a26a-819f8bb861df  Duration: 277.36 ms Billed Duration: 300 ms     Memory Size: 128 MB Max Memory Used: 10 MB  

1538MB

START RequestId: 513ddaf2-9881-11e6-a790-1bcd95849456 Version: $LATEST
2016-10-22T17:59:46.372Z    513ddaf2-9881-11e6-a790-1bcd95849456    
### standard out:
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 63
model name  : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
stepping    : 2
microcode   : 0x25
cpu MHz     : 2900.064
cache size  : 25600 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 1
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt
bugs        :
bogomips    : 5800.12
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family  : 6
model       : 63
model name  : Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
stepping    : 2
microcode   : 0x25
cpu MHz     : 2900.064
cache size  : 25600 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 1
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 13
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt
bugs        :
bogomips    : 5800.12
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

             total       used       free     shared    buffers     cached
Mem:          3767        494       3273          0         12        338
-/+ buffers/cache:        144       3623
Swap:            0          0          0
Amazon Linux AMI release 2016.03
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/xvda1      30830568 2777112  27953208  10% /
/dev/loop1        538424     440    526148   1% /tmp
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vsb_2     Link encap:Ethernet  HWaddr 3E:EB:71:EE:BE:C7  
          inet addr:169.254.76.3  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4649 (4.5 KiB)  TX bytes:2624 (2.5 KiB)


2016-10-22T17:59:46.373Z    513ddaf2-9881-11e6-a790-1bcd95849456    
### standard error:

END RequestId: 513ddaf2-9881-11e6-a790-1bcd95849456
REPORT RequestId: 513ddaf2-9881-11e6-a790-1bcd95849456  Duration: 20.63 ms  Billed Duration: 100 ms     Memory Size: 1536 MB    Max Memory Used: 8 MB   

/usr/bin

ついでなので、/usr/bin に何が入っているのかも調べてみました。

アクセス権:-rwxr-xr-x 1 root root
ディレクトリの内容:

animate
appletviewer8
ar
as
aserver
awk

base64
bashbug
bashbug-64
bdftopcf
bdftops
berkeley_db_svc
bmp2tiff
build-classpath
build-classpath-directory
build-jar-repository
bunzip2
bzcat
bzcmp
bzdiff
bzgrep
bzip2
bzip2recover
bzless
bzmore

c2ph
cairo-sphinx
cal
ca-legacy
captoinfo
catchsegv
certutil
c++filt
chcon
check-binary-files
checksctp
chrt
chvt
cksum
clean-binary-files
clear
cmp
cmsutil
col
colcrt
colrm
column
comm
compare
composite
conjure
convert
create-jar-links
crlutil
csplit
curl
cut

db_archive
db_checkpoint
db_codegen
db_deadlock
db_dump
db_dump185
db_hotbackup
db_load
db_printlog
db_recover
db_stat
db_upgrade
db_verify
deallocvt
diff
diff3
diff-jars
dir
dircolors
dirname
display
du
dumphint
dvipdf
dwp

eject
elfedit
env
eps2eps
eqn
eu-addr2line
eu-ar
eu-elfcmp
eu-elflint
eu-findtextrel
eu-make-debug-archive
eu-nm
eu-objdump
eu-ranlib
eu-readelf
eu-size
eu-stack
eu-strings
eu-strip
eu-unstrip
expand
expr
extcheck8

factor
fallocate
fax2ps
fax2tiff
fc-cache
fc-cat
fc-list
fc-match
fc-query
fc-scan
fgconsole
file
find
find2perl
find-jar
flock
fmt
fold
font2c
fonttosfnt
free
funzip

gawk
gcore
gdb
gdb-add-index
gdbus
gencat
gendiff
geqn
getconf
getent
getkeycodes
getopt
ghostscript
gif2tiff
gio-querymodules-64
glib-compile-schemas
gmake
gneqn
gnroff
gpg
gpg2
gpg-agent
gpgconf
gpg-connect-agent
gpg-error
gpgparsemail
gpgsplit
gpgsplit2
gpgv
gpgv2
gpg-zip
gpg-zip2
gpic
gprof
groff
grops
grotty
groups
gs
gsbj
gsdj
gsdj500
gsettings
gslj
gslp
gsnd
gsoelim
gstack
gtbl
gtroff
gunzip
gzexe
gzip

h2ph
head
hexdump
hostid

i386
iconv
id
identify
idlj8
idn
igawk
import
info
infocmp
infokey
infotocap
install
ionice
ipcmk
ipcrm
ipcs
isosize

jar8
jarsigner8
java
java7
java8
javac8
javadoc8
javah8
javap8
java-rmi.cgi8
jcmd8
jconsole8
jdb8
jdeps8
jhat8
jinfo8
jjs
jjs8
jmap8
join
jps8
jrunscript8
jsadebugd8
jstack8
jstat8
jstatd8
jvmjar

kbdrate
keytool
keytool7
keytool8
kill
killall
kmod

last
lastb
lastlog
lchfn
lchsh
ld
ld.bfd
ldd
ld.gold
linux32
linux64
loadunimap
locale
localedef
logger
logname
look
lprsetup.sh
lscpu
lslocks
lslogins
lua
luac

make
makedb
mapscrn
mcookie
md5sum
mesg
mkfifo
mkfontdir
mkfontscale
modutil
mogrify
montage
mountpoint

namei
native2ascii8
neqn
nl
nm
node
nohup
nproc
nroff
nsenter
numfmt

objcopy
objdump
od
oldfind
open
openssl
openvt
orbd
orbd7
orbd8

p11-kit
pack200
pack2007
pack2008
pal2rgb
paste
patch
pathchk
pdf2dsc
pdf2ps
pdfopt
peekfd
perl
perl5.16.3
perlbug
perldoc
perlthanks
pf2afm
pfbtopfa
pgawk
pgrep
pic
piconv
pinentry
pinentry-curses
pinky
pk12util
pkg-config
pkill
pl2pm
pldd
pmap
pod2html
pod2man
pod2text
pod2usage
policytool
policytool7
policytool8
post-grohtml
ppm2tiff
pr
preconv
pre-grohtml
printafm
printenv
printf
prlimit
prtstat
ps2ascii
ps2epsi
ps2pdf
ps2pdf12
ps2pdf13
ps2pdf14
ps2pdfwr
ps2ps
ps2ps2
psed
psfaddtable
psfgettable
psfstriptable
psfxtable
pstack
pstree
pstree.x11
pstruct
ptx
pv.sh
pwdx
pwmake
pwscore
pydoc
pydoc27
pydoc2.7
pydoc3
pydoc3.4
python
python27
python2.7
python3
python34
python3.4
python3.4m
pyvenv3
pyvenv3.4

ranlib
ras2tiff
raw2tiff
readelf
readlink
realpath
rebuild-jar-repository
rebuild-security-providers
rename
renice
reset
resizecons
rev
rgb2ycbcr
rmic8
rmid
rmid7
rmid8
rmiregistry
rmiregistry7
rmiregistry8
rpcgen
rpm2cpio
rpmbuild
rpmdb
rpmkeys
rpmquery
rpmspec
rpmverify
runcon

s2p
schemagen8
script
scriptreplay
sctp_darn
sctp_status
sctp_test
sdiff
seq
serialver8
servertool
servertool7
servertool8
setarch
setkeycodes
setleds
setmetamode
setpriv
setsid
setterm
setup-nsssysinit
setup-nsssysinit.sh
sg
sha1sum
sha224sum
sha256sum
sha384sum
sha512sum
showconsolefont
showkey
shred
shuf
signtool
signver
size
skill
slabtop
snice
soelim
sotruss
splain
split
sprof
sqlite3
ssltap
stat
stdbuf
stream
strings
strip
sum

tabs
tac
tail
tailf
tbl
tee
test
thumbnail
tic
tiff2bw
tiff2pdf
tiff2ps
tiff2rgba
tiffcmp
tiffcp
tiffcrop
tiffdither
tiffdump
tiffinfo
tiffmedian
tiffset
tiffsplit
timeout
tload
tnameserv
tnameserv7
tnameserv8
toe
top
tput
tr
troff
truncate
tset
tsort
ttmkfdir
tty
tzselect

ucs2any
ul
unexpand
uniq
unix-lpr.sh
unpack200
unpack2007
unpack2008
unshare
unxz
unzip
unzipsfx
update-ca-trust
update-mime-database
uptime
urlgrabber
urlgrabber-2.7
users
utmpdump
uuidgen

vdir
vmstat

w
watch
watchgnupg
wc
wdctl
wftopfa
whereis
which
who
whoami
withsctp
wsgen8
wsimport8

x86_64
xargs
xjc8
xmlcatalog
xmllint
xmlwf
xsltproc
xz
xzcat
xzcmp
xzdec
xzdiff
xzegrep
xzfgrep
xzgrep
xzless
xzmore

yes
yum

zcat
zcmp
zdiff
zegrep
zfgrep
zforce
zgrep
zipgrep
zipinfo
zless
zmore
znew
zsoelim

Python3なんかも入っていますね。

Python3のバージョン

$ /usr/bin/python3.4 -V
Python 3.4.3

perlのバージョン

$ perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 25 registered patches, see perl -V for more detail)

nodeのバージョン

$ node -v
v4.3.2

nodeのパッケージ

-we-there-yet@1.0.4
  │   │ └── delegates@0.1.0
  │   └─┬ gauge@1.2.2
  │     ├── has-unicode@1.0.1
  │     ├── lodash._basetostring@3.0.1
  │     ├─┬ lodash._createpadding@3.6.1
  │     │ └── lodash.repeat@3.0.1
  │     ├── lodash.pad@3.1.1
  │     ├── lodash.padleft@3.1.1
  │     └── lodash.padright@3.1.1
  ├── npm-package-arg@4.1.0
  ├─┬ npm-registry-client@7.0.8
  │ └─┬ concat-stream@1.5.1
  │   ├─┬ readable-stream@2.0.4
  │   │ ├── core-util-is@1.0.1
  │   │ ├── isarray@0.0.1
  │   │ ├── process-nextick-args@1.0.3
  │   │ ├── string_decoder@0.10.31
  │   │ └── util-deprecate@1.0.2
  │   └── typedarray@0.0.6
  ├── npm-user-validate@0.1.2
  ├─┬ npmlog@2.0.0
  │ ├─┬ are-we-there-yet@1.0.4
  │ │ └── delegates@0.1.0
  │ └─┬ gauge@1.2.2
  │   ├── has-unicode@1.0.1
  │   ├─┬ lodash.pad@3.1.1
  │   │ ├── lodash._basetostring@3.0.1
  │   │ └─┬ lodash._createpadding@3.6.1
  │   │   └── lodash.repeat@3.0.1
  │   ├─┬ lodash.padleft@3.1.1
  │   │ ├── lodash._basetostring@3.0.1
  │   │ └─┬ lodash._createpadding@3.6.1
  │   │   └── lodash.repeat@3.0.1
  │   └─┬ lodash.padright@3.1.1
  │     ├── lodash._basetostring@3.0.1
  │     └─┬ lodash._createpadding@3.6.1
  │       └── lodash.repeat@3.0.1
  ├── once@1.3.2
  ├── opener@1.4.1
  ├─┬ osenv@0.1.3
  │ ├── os-homedir@1.0.0
  │ └── os-tmpdir@1.0.1
  ├── path-is-inside@1.0.1
  ├─┬ read@1.0.7
  │ └── mute-stream@0.0.5
  ├─┬ read-installed@4.0.3
  │ ├── debuglog@1.0.1
  │ ├── readdir-scoped-modules@1.0.2
  │ └── util-extend@1.0.1
  ├─┬ read-package-json@2.0.2
  │ └─┬ json-parse-helpfulerror@1.0.3
  │   └── jju@1.2.1
  ├─┬ readable-stream@1.1.13
  │ ├── core-util-is@1.0.1
  │ ├── isarray@0.0.1
  │ └── string_decoder@0.10.31
  ├── realize-package-specifier@3.0.1
  ├─┬ request@2.65.0
  │ ├── aws-sign2@0.6.0
  │ ├─┬ bl@1.0.0
  │ │ └─┬ readable-stream@2.0.3
  │ │   ├── core-util-is@1.0.1
  │ │   ├── isarray@0.0.1
  │ │   ├── process-nextick-args@1.0.3
  │ │   ├── string_decoder@0.10.31
  │ │   └── util-deprecate@1.0.2
  │ ├── caseless@0.11.0
  │ ├─┬ combined-stream@1.0.5
  │ │ └── delayed-stream@1.0.0
  │ ├── extend@3.0.0
  │ ├── forever-agent@0.6.1
  │ ├─┬ form-data@1.0.0-rc3
  │ │ └── async@1.5.0
  │ ├─┬ har-validator@2.0.2
  │ │ ├─┬ chalk@1.1.1
  │ │ │ ├── ansi-styles@2.1.0
  │ │ │ ├── escape-string-regexp@1.0.3
  │ │ │ ├── has-ansi@2.0.0
  │ │ │ └── supports-color@2.0.0
  │ │ ├─┬ commander@2.9.0
  │ │ │ └── graceful-readlink@1.0.1
  │ │ ├─┬ is-my-json-valid@2.12.2
  │ │ │ ├── generate-function@2.0.0
  │ │ │ ├─┬ generate-object-property@1.2.0
  │ │ │ │ └── is-property@1.0.2
  │ │ │ ├── jsonpointer@2.0.0
  │ │ │ └── xtend@4.0.0
  │ │ └─┬ pinkie-promise@1.0.0
  │ │   └── pinkie@1.0.0
  │ ├─┬ hawk@3.1.0
  │ │ ├── boom@2.10.0
  │ │ ├── cryptiles@2.0.5
  │ │ ├── hoek@2.16.3
  │ │ └── sntp@1.0.9
  │ ├─┬ http-signature@0.11.0
  │ │ ├── asn1@0.1.11
  │ │ ├── assert-plus@0.1.5
  │ │ └── ctype@0.5.3
  │ ├── isstream@0.1.2
  │ ├── json-stringify-safe@5.0.1
  │ ├─┬ mime-types@2.1.7
  │ │ └── mime-db@1.19.0
  │ ├── node-uuid@1.4.3
  │ ├── oauth-sign@0.8.0
  │ ├── qs@5.2.0
  │ ├── stringstream@0.0.5
  │ ├── tough-cookie@2.2.0
  │ └── tunnel-agent@0.4.1
  ├── retry@0.8.0
  ├── rimraf@2.4.3
  ├── semver@5.0.3
  ├─┬ sha@2.0.1
  │ └─┬ readable-stream@2.0.2
  │   ├── core-util-is@1.0.1
  │   ├── isarray@0.0.1
  │   ├── process-nextick-args@1.0.3
  │   ├── string_decoder@0.10.31
  │   └── util-deprecate@1.0.1
  ├── slide@1.1.6
  ├── sorted-object@1.0.0
  ├── spdx@0.4.1
  ├── spdx-license-ids@1.1.0
  ├── strip-ansi@3.0.0
  ├── tar@2.2.1
  ├── text-table@0.2.0
  ├── uid-number@0.0.6
  ├── umask@1.1.0
  ├─┬ validate-npm-package-license@3.0.1
  │ ├── spdx-correct@1.0.1
  │ └─┬ spdx-expression-parse@1.0.0
  │   └── spdx-exceptions@1.0.2
  ├─┬ validate-npm-package-name@2.2.2
  │ └── builtins@0.0.7
  ├─┬ which@1.2.0
  │ └─┬ is-absolute@0.1.7
  │   └── is-relative@0.1.3
  ├── wrappy@1.0.1
  └── write-file-atomic@1.1.3

SQLite3のバージョン

$ sqlite3 -version
3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668

curlのバージョン

$ curl --version
curl 7.40.0 (x86_64-redhat-linux-gnu) libcurl/7.40.0 NSS/3.21 Basic ECC zlib/1.2.8 libidn/1.18 libssh2/1.4.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets 

Javaのバージョン

$ ls -la /usr/lib/jvm
drwxr-xr-x  4 root root 4096 Sep 28 02:52 .
dr-xr-xr-x 23 root root 4096 Sep 28 02:52 ..
drwxr-xr-x  3 root root 4096 Sep 28 02:52 java-1.7.0-openjdk-1.7.0.111.x86_64
drwxr-xr-x  3 root root 4096 Sep 28 02:52 java-1.8.0-openjdk-1.8.0.101-3.b13.24.amzn1.x86_64
lrwxrwxrwx  1 root root   21 Sep 28 02:52 jre -> /etc/alternatives/jre
lrwxrwxrwx  1 root root   27 Sep 28 02:52 jre-1.7.0 -> /etc/alternatives/jre_1.7.0
lrwxrwxrwx  1 root root   39 Sep 28 02:52 jre-1.7.0-openjdk.x86_64 -> java-1.7.0-openjdk-1.7.0.111.x86_64/jre
lrwxrwxrwx  1 root root   27 Sep 28 02:52 jre-1.8.0 -> /etc/alternatives/jre_1.8.0
lrwxrwxrwx  1 root root   24 Sep 28 02:52 jre-1.8.0-openjdk -> jre-1.8.0-openjdk.x86_64
lrwxrwxrwx  1 root root   54 Sep 28 02:52 jre-1.8.0-openjdk.x86_64 -> java-1.8.0-openjdk-1.8.0.101-3.b13.24.amzn1.x86_64/jre
lrwxrwxrwx  1 root root   29 Sep 28 02:52 jre-openjdk -> /etc/alternatives/jre_openjdk

/bin

つづいて /bin も。

arch
awk
basename
bash
cat
chgrp
chmod
chown
cp
cpio
cut
dash
date
dd
df
dmesg
dnsdomainname
domainname
dumpkeys
echo
egrep
env
false
fgrep
find
findmnt
gawk
grep
gtar
gunzip
gzip
hostname
ipcalc
iptables-xml
kbd_mode
kill
link
ln
loadkeys
login
ls
lsblk
mkdir
mknod
mktemp
more
mountpoint
mv
netstat
nice
nisdomainname
ping
ping6
ps
pwd
raw
readlink
rm
rmdir
rpm
sed
setfont
sh
sleep
sort
stty
sync
tar
taskset
touch
tracepath
tracepath6
true
uname
unicode_start
unicode_stop
unlink
usleep
ypdomainname
zcat

/sbin

つづいて、`/sbin'。

addpart
agetty
arp
arping
blkdiscard
blkid
blockdev
bridge
cfdisk
change_console
chcpu
chkconfig
clock
consoletype
ctrlaltdel
delpart
depmod
dracut
ec2udev-vbd
ec2udev-vcpu
ether-wake
ethtool
faillock
fdisk
findfs
fsck
fsck.cramfs
fsfreeze
fstab-decode
fstrim
fuser
genhostid
getkey
grubby
halt
hwclock
ifcfg
ifconfig
ifdown
ifenslave
ifup
init
initctl
insmod
install-info
installkernel
ip
ip6tables
ip6tables-restore
ip6tables-save
ipmaddr
iptables
iptables-restore
iptables-save
iptunnel
killall5
ldconfig
losetup
lsinitrd
lsmod
mii-diag
mii-tool
mingetty
mkfs
mkfs.cramfs
mkhomedir_helper
mkinitrd
mkswap
modinfo
modprobe
nameif
new-kernel-pkg
nologin
pam_console_apply
pam_tally2
partx
pidof
pivot_root
plipconfig
poweroff
ppp-watch
pwhistory_helper
rdisc
reboot
reload
restart
rmmod
route
routef
routel
rtmon
rtpr
runlevel
runuser
securetty
service
setsysfont
sfdisk
shutdown
slattach
sln
start
start_udev
status
stop
sulogin
sushell
swapoff
swapon
switch_root
sysctl
tc
telinit
udevadm
udevd
udevsettle
unix_update
weak-modules
wipefs
xtables-multi

/usr/sbin

つづいて /usr/sbin

addgnupghome
adduser
alternatives
applygnupgdefaults
arpd
arping
build-locale-archive
capsh
cbq
chpasswd
chroot
clockdiff
cracklib-check
cracklib-format
cracklib-packer
cracklib-unpacker
create-cracklib-dict
ctstat
depmod
ethtool
faillock
fdformat
fsck.minix
genl
getcap
getpcaps
glibc_post_upgrade.x86_64
groupadd
groupdel
groupmems
groupmod
grpck
grpconv
grpunconv
hwclock
iconvconfig
iconvconfig.x86_64
ifstat
insmod
lchage
ldattach
lgroupadd
lgroupdel
lgroupmod
lid
lnewusers
lnstat
lpasswd
lsmod
luseradd
luserdel
lusermod
matchpathcon
mkdict
mkfs.minix
mkhomedir_helper
modinfo
modprobe
newusers
nstat
packer
pam_console_apply
pam_tally2
pam_timestamp_check
ping6
pwck
pwconv
pwhistory_helper
pwunconv
readprofile
resizepart
rmmod
rtacct
rtcwake
rtstat
sasldblistusers2
saslpasswd2
setcap
ss
sulogin
swaplabel
sys-unconfig
tracepath
tracepath6
unix_chkpwd
unix_update
update-alternatives
update-motd
useradd
userdel
usermod
vigr
vipw
weak-modules
zdump
zic

環境変数

最後にenvコマンドで環境変数を調べてみます。
一部、伏字にしてあります。

AWS_LAMBDA_FUNCTION_VERSION=$LATEST
AWS_SESSION_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LD_LIBRARY_PATH=/usr/local/lib64/node-v4.3.x/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib
AWS_LAMBDA_LOG_GROUP_NAME=/aws/lambda/HelloLambda
LAMBDA_TASK_ROOT=/var/task
AWS_LAMBDA_LOG_STREAM_NAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
AWS_LAMBDA_FUNCTION_NAME=HelloLambda
PATH=/usr/local/lib64/node-v4.3.x/bin:/usr/local/bin:/usr/bin/:/bin
AWS_DEFAULT_REGION=ap-northeast-1
PWD=/var/task
AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LANG=en_US.UTF-8
LAMBDA_RUNTIME_DIR=/var/runtime
NODE_PATH=/var/runtime:/var/task:/var/runtime/node_modules
AWS_REGION=ap-northeast-1
AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SHLVL=1
AWS_LAMBDA_FUNCTION_MEMORY_SIZE=128
_=/usr/bin/env
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away