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 2
2
This AWS lambda layer contains a pre-built [ sharp] ( https://www.npmjs.com/package/sharp ) npm library.
3
3
It is optimized for the most frugal space usage possible.
4
4
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 |
8
8
9
9
# Getting
10
10
A 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
15
15
* Docker
16
16
17
17
## 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:
21
19
``` shell script
22
20
git clone git@github.com:Umkus/lambda-layer-sharp.git
23
21
cd lambda-layer-sharp/
@@ -36,10 +34,5 @@ The below commands are also available in the `scripts` section of `package.json`
36
34
` ` `
37
35
1. Import created layer into your AWS account:
38
36
` ` ` 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
45
38
` ` `
You can’t perform that action at this time.
0 commit comments