A collection of AWS Lambda snippets based on Node.js.
This repository contains a collection of useful AWS Lambda snippets based on Node.js which can be used for different purposes.
Decompresses a file compressed with GZIP in the temporary AWS Lambda storage.
Downloads a file from an S3 Bucket and stores it in the temporary AWS Lambda storage.
Downloads a file from a remote server via SFTP and stores it in the temporary AWS Lambda storage.
- Source
- Dependencies:
Lists all objects within an S3 Bucket. The function supports an optional prefix and loads the list of objects in iterations to avoid timeouts. The number of objects which are loaded during each iteration can be defined via the MaxKeys
parameter.
Uploads a file from the temporary AWS Lambda storage to an S3 Bucket. In this example an XML file is used which got compressed with gzip.