Skip to content
Proyek

aws-samples/s3-to-lambda-patterns

Lihat di GitHub

Tentang

Example applications for the S3-to-Lambda patterns series in the AWS Compute Blog and learning path. Questions? @jbesw.

Pembelajaran dan pendidikan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

S3-to-Lambda Patterns Series

The applications in this repo are supplementary training materials for the S3-to-Lambda blog series and video series. Each example has its own README.md file for additional instructions.

Important: these applications use various AWS services and there are costs associated with these services after the Free Tier usage. Please see the AWS Pricing page for details. You are responsible for any AWS costs incurred. No warranty is implied in these examples.

What's changed since the blog posts and videos

The examples have been updated since the original blog posts and videos were published, so some code and setup steps differ from what's shown there. The architectures and patterns are the same.

  • Node.js 24 and AWS SDK for JavaScript v3. All functions use the nodejs24.x runtime and the modular @aws-sdk/client-* packages (client.send(new Command())) instead of aws-sdk v2. Functions run on arm64 (AWS Graviton).
  • Native S3 to EventBridge. The eventbridge and decoupled-docrepo examples use Amazon S3 Event Notifications with EventBridge instead of CloudTrail data events, so no trail or logging bucket is needed and events arrive faster. Event rules match detail-type: Object Created and read detail.bucket.name / detail.object.key.
  • Step Functions calls Rekognition directly. The workflow and videos-samples/4-workflow state machines use the AWS SDK service integration and JSONata instead of a Lambda function, and the definitions live in statemachine/*.asl.json. S3 still invokes a Lambda function that starts each workflow.
  • Bucket names are prefixes. Bucket name parameters are suffixed with your account ID and Region (<prefix>-<account-id>-<region>) so the defaults are globally unique.
  • resize-video builds its FFmpeg layer automatically during sam build instead of using a Serverless Application Repository layer, and runs FFmpeg without a shell.
  • Fixes: S3 object keys are URL-decoded consistently, and several bugs were fixed (only the first record in an event being processed, an infinite loop in the batching functions, unhandled promise rejections, and overly broad IAM permissions).

Video series

Watch the videos accompanying this repo at this YouTube Playlist: https://www.youtube.com/playlist?list=PLJo-rJlep0EAY0nMNBv0MZ487l1tOFAjh

Blog series

Videos

All examples from the video series are located in the videos-samples sub-directory.

Requirements

Disclaimer

The sample code; software libraries; command line tools; proofs of concept; templates; or other related technology (including any of the foregoing that are provided by our personnel) is provided to you as AWS Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You should not use this AWS Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances or using Amazon S3 storage.

==============================================

Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0

Jelajahi proyek terkait

Memuat…