Guides
-
Process DynamoDB Streams in Lambda With TypeScript
Enable a DynamoDB stream, connect it to Lambda with safe retry settings, and write a typed TypeScript handler that reports partial batch failures.
-
Create and Update Secrets With AWS SDK v3 (Secrets Manager)
Create secrets, write new versions safely, roll back with AWSPREVIOUS and schedule deletion using the Secrets Manager client in AWS SDK v3.
-

Create EventBridge Scheduler Schedules With AWS SDK v3
Cron, rate and one-time schedules with @aws-sdk/client-scheduler, including time zones, self-deleting schedules, retries, DLQs and the execution role.
-

Encrypt and Decrypt Data With AWS KMS and SDK v3
Encrypt small secrets with EncryptCommand, anything larger with GenerateDataKey and AES-256-GCM, and fix the errors KMS returns along the way.
-
Reduce AWS SDK v3 Bundle Size and Cold Starts in Lambda
Measured esbuild results for an AWS SDK v3 Lambda handler: what shrinks the bundle, the ESM require fix and how to track Init Duration.
-
Assume an IAM Role With AWS SDK v3 (STS AssumeRole)
Explicit STS AssumeRole flows in AWS SDK v3: pass the credentials to clients, refresh before expiry, loop over accounts and fix AccessDenied errors.
-
Run CloudWatch Logs Insights Queries With AWS SDK v3
A reusable TypeScript helper for CloudWatch Logs Insights: start a query, poll with backoff, parse rows, stop runaway queries and know what each scan…
-
DynamoDB Transactions With AWS SDK v3 (TransactWriteItems)
How to write all-or-nothing DynamoDB transactions in TypeScript with TransactWriteCommand, decode cancellations, retry safely and read with TransactGet.
-
Paginate Any AWS API With AWS SDK v3 Paginators
How AWS SDK v3 paginators work: for await loops, pageSize, startingToken, collecting vs streaming, manual NextToken loops and the bugs that bite.
-
Read an S3 Object With AWS SDK v3 (GetObject)
How to read S3 objects with GetObjectCommand in AWS SDK v3: transformToString, streaming to a file, Range reads, NoSuchKey, ETags and IAM.