Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roy-barla1810/dataprocessing_lambda
https://github.com/roy-barla1810/dataprocessing_lambda
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/roy-barla1810/dataprocessing_lambda
- Owner: ROY-BARLA1810
- Created: 2023-11-03T15:35:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-03T15:48:50.000Z (about 1 year ago)
- Last Synced: 2023-11-03T16:39:23.618Z (about 1 year ago)
- Language: JavaScript
- Size: 7.28 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Resizer Lambda
This Lambda will be invoked when a file is uploaded to a particular bucket. It will fetch the file that was added, resize it, and store the output in a different bucket.
## Run Locally
Clone the project
```bash
git clone https://github.com/OneLightWebDev/image-resizer-lambda.git
```Install Dependencies
```bash
# Required options if on mac
npm install --arch=x64 --platform=linux --target=16x sharp
```## Environment Variables
Remember set the `DEST_BUCKET` in your Lambda's "Configuration" tab. To do this, open your Lambda in the AWS Console, select the "Configuration" tab, then click "Environment variables"
```bash
DEST_BUCKET=thumbnails-bucket-name
```## Deployment
```bash
npm run package
```Running the command above will zip your source code and dependencies. The zip can then be uploaded to your Lambda.