Skip to content

A collection of AWS Lambda snippets based on Node.js.

Notifications You must be signed in to change notification settings

Asgaros/aws-lambda-snippets

Repository files navigation

AWS Lambda Snippets

A collection of AWS Lambda snippets based on Node.js.

Introduction

This repository contains a collection of useful AWS Lambda snippets based on Node.js which can be used for different purposes.

decompress-gzip-file

Decompresses a file compressed with GZIP in the temporary AWS Lambda storage.

download-file-from-s3

Downloads a file from an S3 Bucket and stores it in the temporary AWS Lambda storage.

download-file-via-sftp

Downloads a file from a remote server via SFTP and stores it in the temporary AWS Lambda storage.

list-objects-in-s3

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.

upload-file-to-s3

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.

About

A collection of AWS Lambda snippets based on Node.js.

Topics

Resources

Stars

Watchers

Forks