• Stars
    star
    287
  • Rank 144,232 (Top 3 %)
  • Language
    JavaScript
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This source code distribution is a companion to the AWS Lambda in Action book available from Manning Publications.

Welcome to AWS Lambda in Action

This source code distribution is a companion to the AWS Lambda in Action: Event-Driven Serverless Application book available from Manning Publications.

There are a few live demos available at https://awslambdainaction.com/#livedemos

To purchase an electronic or printed copy of the book, visit https://www.manning.com/books/aws-lambda-in-action

Requirements

To create Lambda functions and execute the code, you need an Amazon Web Services (AWS) account.

To create a new account, please see: https://aws.amazon.com/free/

Running

To create functions, start from the AWS Lambda web console at: https://console.aws.amazon.com/lambda

For detailed information on how to use the source code, please look at the relative chapters in the book.

Chapter02/
  greetingsOnDemand.js                  Function to greet by "name" in Node.js
  greetingsOnDemand.py                  Function to greet by "name" in Python
  customGreetingsOnDemand.js            Function for a custom greet by "name" in Node.js
  customGreetingsOnDemand.py            Function for a custom greet by "name" in Python
Chapter03/
  whatIsMyIp.js                         Function to echo the IP address in input in Node.js
  whatIsMyIp.py                         Function to echo the IP address in input in Python
Chapter04/
  Policy_RW_S3.json                     Policy to give read/write access to an Amazon S3 bucket
  Policy_RW_console_S3.json             Adding permissions required by the Amazon S3 web console
  Policy_RW_prefix_console_S3.json      Limiting access to a prefix inside an Amazon S3 bucket
  Policy_RW_DynamoDB.json               Policy to give read/write access to a DynamoDB table
  Policy_RW_query_DynamoDB.json         Adding query permissions to Amazon DynamoDB
  Policy_Lambda_basic_exec_role.json    Lambda basic execution role permissions
  Policy_Lambda_trust.json              Lambda basic execution role trust relationships
Chapter05/
  FaceDetection/                        Function using OpenCV to detect faces.
  Scheduled/                            Function to clean up your S3 bucket. Can be scheduled.
  SubscribeToS3/                        Function triggered by a new picture on Amazon S3.
Chapter06/
  Policy_Cognito_private_S3.json        Policy to give access to private folders on Amazon S3
  Policy_Cognito_public_S3.json         Policy to give access to public folders on Amazon S3
  Policy_Cognito_private_DynamoDB.json  Policy to give private access to DynamoDB
  Policy_Cognito_shared_DynamoDB.json   Policy to give shared access to DynamoDB
  Policy_Cognito_trust_auth.json        Amazon Cognito trust policy for the unauthenticated role
  Policy_Cognito_trust_unauth.json      Amazon Cognito trust policy for the authenticated role
Chapter07/
  GreetingsOnDemand/                    Calling a function via JavaScript from a static web page
  CustomGreetingsOnDemand/              Another example of calling a function via JavaScript
  SimpleWebsite/                        Dynamic web site using Amazon API Gateway and EJS templates
Chapter09/
  SampleAuth/                           Sample serverless authentication service
Chapter10/
  SampleAuth/                           Same as before (more features in this chapter)
Chapter11/
  MediaSharing/                         Sample media sharing web app
Chapter13/
  app.py                                Sample app using Chalice
  greetingsOnDemand.js                  Same old function, to test local development
  greetingsOnDemand.py                  Same old function, to test local development
  runLocal.js                           Sample wrapper to run JavaScript functions locally
  runLocal.py                           Sample wrapper to run Python functions locally
  lambdaTest.js                         Function to test other functions, based on the blueprint
Chapter14/
  CloudFormation/                       CloudFormation templates to create Lambda functions
  greetingsOnDemand/                    Same old function, to play with AWS CloudFormation

Contact Information

Manning provides an Author Online forum accessible from: https://forums.manning.com/forums/aws-lambda-in-action

For general AWS Lambda information and support, please visit AWS's website for pointers to FAQ's, documentation and pricing.

The main AWS Lambda website is: https://aws.amazon.com/lambda

More Repositories

1

LambdAuth

A sample authentication service implemented with a server-less architecture, using AWS Lambda to host and execute the code and Amazon DynamoDB as persistent storage. This provides a cost-efficient solution that is scalable and highly available and can be used with Amazon Cognito for Developer Authenticated Identities.
JavaScript
1,371
star
2

yas3fs

YAS3FS (Yet Another S3-backed File System) is a Filesystem in Userspace (FUSE) interface to Amazon S3. It was inspired by s3fs but rewritten from scratch to implement a distributed cache synchronized by Amazon SNS notifications. A web console is provided to easily monitor the nodes of a cluster.
Python
643
star
3

ServerlessByDesign

A visual approach to serverless development. Think. Build. Repeat.
JavaScript
289
star
4

serverless-chat

A serverless web chat built using AWS Lambda, AWS IoT (for WebSockets) and Amazon DynamoDB
JavaScript
106
star
5

multimodal-chat

A multimodal chat interface with many tools.
Python
66
star
6

serverless-positive-chat

An inclusive chat that avoids negative messages and translates the content in the language that you choose, tracking the main topics of a chat room.
JavaScript
53
star
7

SampleBatchProcessing

Sample Implementation of Batch Processing on Amazon Web Services (AWS)
Shell
50
star
8

evolutionary-serverless-architectures-with-safe-deployments

A sample implementation of an evolutionary architecture for a serverless application using safe deployments, automatically computing the fitness function at deployment time, with the possibility to rollback back if fitness is not improving.
JavaScript
40
star
9

serverless-iot-analytics

Serverless processing of sensor data using AWS IoT, Amazon Kinesis and AWS Lambda to display the result graphically on a static web page.
JavaScript
28
star
10

serverless-observability-sample-app

A sample application you can use to test observability for serverless apps
JavaScript
24
star
11

AutoScaling2IFTTT

A sample AWS Lambda function to push EC2 Auto Scaling notifications to IFTTT via the Maker channel
JavaScript
21
star
12

lambda-rust-and-cdk

TypeScript
19
star
13

SNS2IFTTT

A sample AWS Lambda function to push SNS notifications to IFTTT via the Maker channel
JavaScript
19
star
14

runjop

RunJOP (Run Just Once Please) is a distributed execution framework to run a command (i.e. a job) only once in a group of servers.
Python
19
star
15

events-and-workflows

A sample application showing a serverless retail shop using a workflow to create an order.
JavaScript
18
star
16

oss-for-generative-ai

Open Source Frameworks for Building Generative AI Applications
Python
16
star
17

portable-serverless-app

An example of portable serverless app that can run on multiple platforms.
JavaScript
15
star
18

reInvent2022-BOA310

Code used at re:Invent 2022 for session BOA310 "Building observable applications with OpenTelemetry"
Python
14
star
19

lightbulbSwitch

Sample AWS Lambda function to use AWS IoT Device Shadow to switch a connected lightbulb ON or OFF
JavaScript
14
star
20

first-step-functions

Sample AWS Step Functions application to get practice with SAM templates, Lambda functions, SNS topics and SQS queues.
JavaScript
14
star
21

graphql-api-security-with-aws-appsync-and-amplify

13
star
22

yas3fs-console

A web console to easy monitor the nodes of a YAS3FS cluster.
JavaScript
13
star
23

analyzing-data-aws-lambda

Python
11
star
24

CloudWatchAlarm2IFTTT

A sample AWS Lambda function to push Amazon CloudWatch alarms to IFTTT via the Maker channel
JavaScript
9
star
25

time-series-and-data-lakes

Python
8
star
26

danilop-personal-page

A simple script to populate a web page with links, retrieving link info using the Open Graph protocol. I built it for my personal page.
HTML
8
star
27

commit-message-generator

Elevate your Git workflow with intelligent, context-aware commit messages generated by an AI language model.
Python
7
star
28

ec2-watchdog

EC2-WatchDog is a simple (bash) script for Amazon EC2 to monitor another node for HA and take over a Virtual IP (VIP) if the service on the other node fails.
Shell
7
star
29

security-camera

A DIY Security Camera with a Raspberry Pi and AWS
Python
6
star
30

serverless-time

Sample Serverless App for CI/CD using AWS SAM
JavaScript
5
star
31

serverless-functions-and-containers

HTML
5
star
32

store-and-reply

JavaScript
5
star
33

JustAGame

A (very) simple game to showcase the power of HTML5 + WebSockets and the use of Amazon Web Services (AWS) APIs within an application
JavaScript
4
star
34

snsUnsubscribeNonExistingQueues

This is a sample script using the new AWS CLI and jq to check for SNS subscription by SQS queues that are not existing anymore and remove (unsubscribe) them.
Shell
3
star
35

serverless-ml

Sample serverless data pipeline powered by machine learning
JavaScript
3
star
36

generative-ai-team-building

Your not alone to reach your goal!
Python
2
star
37

first-serverless-functions

A few examples of Lambda functions to start with serverless development
JavaScript
2
star
38

CloudConf2023-observability-demo

Code used in my CloudConf 2023 keynote – From complexity to observability using OpenTelemetry
Python
2
star
39

non-deterministic-software-testing

How to test non-deterministic software, including applications using generative AI and Large Language Models (LLMs).
Python
2
star
40

llm-test-mate

A testing framework for LLM-generated content. Makes it easy to validate outputs from large language models using semantic similarity and LLM-based evaluation.
Python
2
star
41

knn-search-algorithm-comparison

KNN Search Algorithm Comparison – This project compares the performance of different K-Nearest Neighbors (KNN) search algorithms across various dataset sizes and dimensions.
Python
2
star