File tree Expand file tree Collapse file tree 5 files changed +1692
-1514
lines changed Expand file tree Collapse file tree 5 files changed +1692
-1514
lines changed Original file line number Diff line number Diff line change 22This AWS lambda layer contains a pre-built [ sharp] ( https://www.npmjs.com/package/sharp ) npm library.
33It is optimized for the most frugal space usage possible.
44
5- | Sharp version| Layer size (zipped) | Lambda space usage |
6- | ---| ---| --- |
7- | [ 0.25.2 ] ( https://github.com/lovell/sharp/releases/tag/v0.25.2 ) | 26MB (9.9MB) | 5% (out of 512MB) |
5+ | Sharp version| Layer size|
6+ | ---| ---|
7+ | [ 0.26.0 ] ( https://github.com/lovell/sharp/releases/tag/v0.26.0 ) | 9.68MB |
88
99# Getting
1010A pre-built layer zip file is available at [ ` dist/sharp-layer.zip ` ] ( ./dist/sharp-layer.zip ) .
@@ -15,9 +15,7 @@ A pre-built layer zip file is available at [`dist/sharp-layer.zip`](./dist/sharp
1515* Docker
1616
1717## Steps
18- The below commands are also available in the ` scripts ` section of ` package.json ` .
19-
20- 1 . Clone the repo:
18+ 1 . Clone the repo:
2119 ``` shell script
2220 git clone git@github.com:Umkus/lambda-layer-sharp.git
2321 cd lambda-layer-sharp/
@@ -36,10 +34,5 @@ The below commands are also available in the `scripts` section of `package.json`
3634 ` ` `
37351. Import created layer into your AWS account:
3836 ` ` ` shell script
39- aws lambda publish-layer-version \
40- --layer-name sharp \
41- --description " Sharp layer" \
42- --license-info " Apache License 2.0" \
43- --zip-file fileb://dist/sharp-layer.zip \
44- --compatible-runtimes nodejs12.x
37+ aws lambda publish-layer-version --layer-name sharp --description " Sharp layer" --license-info " Apache License 2.0" --zip-file fileb://dist/sharp-layer.zip --compatible-runtimes nodejs12.x
4538 ` ` `
You can’t perform that action at this time.
0 commit comments