You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ An [AWS Lambda][aws_lambda] function for resizing images on demand.
6
6
7
7
Built using the [sharp][sharp] image resizing JS library, and running on the [Node.js][nodejs] runtime.
8
8
9
-
_Note: currently Sharp is being built on Node.js version 10.x_
9
+
_Note: currently Sharp is being built on Node.js version 20.x_
10
10
11
11
On invocation, the Lambda function will fetch the image from the 'original' S3 bucket, resize the image, upload both
12
12
the original and the resized image to the target S3 bucket, and return the resulting filenames to a specified
@@ -54,13 +54,16 @@ On MacOS:
54
54
55
55
### Local testing
56
56
57
-
Or, to invoke and debug locally, run the `lambda_start.js` module, which uses the [Commandline tool to run Amazon Lambda function on local machines][lambda-local]:
57
+
To invoke and debug locally:
58
+
59
+
- Upload the `florsan_homepage.png` file into the `cache` AWS S3 bucket
60
+
- Run the `lambda_start.js` module, which uses the [Commandline tool to run Amazon Lambda function on local machines][lambda-local]:
58
61
59
62
```
60
63
$ node test/lambda_start.js
61
64
```
62
65
63
-
Install globally the [AWS SAM Local][aws_sam_local] package.
66
+
Or, install globally the [AWS SAM Local][aws_sam_local] package.
64
67
65
68
```
66
69
$ npm install -g aws-sam-local
@@ -217,4 +220,4 @@ This [AWS Lambda][aws_lambda] function is [licensed][license] under Apache 2.0.
0 commit comments