Slide 28
Slide 28 text
ΧελϜϥϯλΠϜΛϨΠϠʔʹ KBXTVH
CPPUTUSBQ͕ϧʔτʹ͋ΔΑ͏ʹ[JQΛ࡞
[JQ͔ΒϨΠϠʔΛ࡞ͯ͠-BNCEBΞοϓϩʔυ
$ zip -v -9 -r -D ../php-7.3.9-runtime.zip *
adding: bootstrap (in=66) (out=46) (deflated 30%)
adding: php-runtime/bin/php (in=6105792) (out=2471517) (deflated 60%)
adding: php-runtime/bootstrap.php (in=6380) (out=2451) (deflated 62%)
adding: php-runtime/Context.inc.php (in=1209) (out=628) (deflated 48%)
adding: php-runtime/Logger.inc.php (in=1853) (out=784) (deflated 58%)
total bytes=6115300, compressed=2475426 -> 60% savings
$ aws lambda publish-layer-version --layer-name php-7_3_9-runtime
--zip-file fileb://php-7.3.9-runtime.zip