shelfio / chrome-aws-lambda-layer

58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
MIT License
637 stars 45 forks source link

Version 31 doesn't appear to contain the chrome-aws-lambda package #50

Closed Sher-Chowdhury closed 2 years ago

Sher-Chowdhury commented 2 years ago

I manually inspected it and couldnt' find it:

region=us-east-1 && \
YOUR_LAYER_NAME_HERE=arn:aws:lambda:${region}:764866452798:layer:chrome-aws-lambda && \
YOUR_LAYERS_VERSION=31 && \
URL=$(aws lambda get-layer-version --layer-name $YOUR_LAYER_NAME_HERE --version-number $YOUR_LAYERS_VERSION --query Content.Location --output text) && \
curl $URL -o layer.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50.4M  100 50.4M    0     0  15.5M      0  0:00:03  0:00:03 --:--:-- 15.6M

unzip layer.zip
Archive:  layer.zip
   creating: nodejs/
   creating: nodejs/node_modules/
   creating: nodejs/node_modules/pend/
.
.
.

ls -l
total 103584
-rw-r--r--  1 sherchowdhury  staff  52920758 27 Jul 20:22 layer.zip
drwxr-xr-x  3 sherchowdhury  staff        96 13 Jun 15:52 nodejs

cd nodejs/node_modules

ls -l
total 0
drwxr-xr-x   3 sherchowdhury  staff   96 10 Jun 19:04 @sparticuz
drwxr-xr-x   5 sherchowdhury  staff  160 13 Jun 15:52 agent-base
drwxr-xr-x   6 sherchowdhury  staff  192 13 Jun 15:52 balanced-match
drwxr-xr-x   6 sherchowdhury  staff  192 13 Jun 15:52 base64-js
drwxr-xr-x   8 sherchowdhury  staff  256 13 Jun 15:52 bl
drwxr-xr-x   5 sherchowdhury  staff  160 13 Jun 15:52 brace-expansion
drwxr-xr-x   6 sherchowdhury  staff  192 13 Jun 15:52 buffer
drwxr-xr-x   5 sherchowdhury  staff  160 13 Jun 15:52 buffer-crc32
drwxr-xr-x   5 sherchowdhury  staff  160 13 Jun 15:52 chownr
drwxr-xr-x   9 sherchowdhury  staff  288 10 Jun 19:04 concat-map
drwxr-xr-x   6 sherchowdhury  staff  192 13 Jun 15:52 cross-fetch
drwxr-xr-x   5 sherchowdhury  staff  160 13 Jun 15:52 debug
drwxr-xr-x   7 sherchowdhury  staff  224 13 Jun 15:52 devtools-protocol
.
.
vladholubiev commented 2 years ago
CleanShot 2022-07-28 at 11 38 02@2x
Sher-Chowdhury commented 2 years ago

Doh! Sorry my mistake for not reading the docs properly.