Blog
Guides, walkthroughs and AWS how-tos for asking your cloud questions in plain English.
-
Mock AWS SDK v3 Clients in Unit Tests (Jest and Vitest)
Unit test code that calls AWS SDK v3 without touching AWS: aws-sdk-client-mock with Jest and Vitest, paginators, streams, errors and matchers.
-
DynamoDB BatchWriteItem With AWS SDK v3: Batch Write Items
Write and delete DynamoDB items in bulk from TypeScript with BatchWriteCommand: limits, chunking, UnprocessedItems retries, capacity and IAM.
-
Find Lambda Functions Without an Async Failure Destination
A TypeScript script that finds Lambda functions that silently drop failed asynchronous events and adds an SQS on-failure destination behind –apply.
-
Find Idle Amazon OpenSearch Service Domains
A read-only TypeScript script that finds OpenSearch Service domains with no searches or indexing for 14 days and estimates their monthly cost.
-
Find Idle Amazon Redshift Clusters
A read-only TypeScript script that finds provisioned Redshift clusters with no connections or CPU for 14 days and estimates what each one costs.
-
Find Idle SageMaker Endpoints Still Billing
A TypeScript AWS SDK v3 script that finds SageMaker endpoints with no invocations, prices their instances and can delete them with –apply.
-
Check the IAM Account Password Policy
A TypeScript AWS SDK v3 script that reads the IAM password policy, compares it with CIS and NIST guidance and updates it without resetting…
-
Find S3 Buckets Without Server Access Logging
A TypeScript AWS SDK v3 script that finds S3 buckets with no server access logs, checks both delivery paths and can enable logging to…
-
Find RDS Databases Without Deletion Protection
A TypeScript AWS SDK v3 script that lists RDS instances and clusters without deletion protection and turns it on safely with –apply.
-
Find Unencrypted RDS Instances and Aurora Clusters
A report-only AWS SDK v3 script that finds unencrypted RDS databases, shows the KMS key type behind the rest and flags disabled keys.