Skip to content

aws-cdk

32 posts

Build a RAG Agent with AWS Bedrock and CDK

Building a RAG agent on AWS Bedrock + Knowledge Bases + OpenSearch Serverless with CDK in TypeScript — architecture, IAM wiring, automated ingestion, and the chat UI.

aws-bedrockaws-cdkrag+3
Deploying AWS Bedrock AgentCore with CDK: a quickstart

A CDK guide for deploying a minimal Strands agent on AgentCore Runtime — parameterized stack, arm64 build, deploy and invoke, and the IAM and Marketplace prerequisites you need before the first call.

aws-bedrockai-agentsaws-cdk+3
Edge Computing with AWS: CloudFront Functions vs Lambda@Edge

A comprehensive technical guide to choosing and implementing AWS edge computing solutions for global applications with practical examples and cost optimization strategies.

awscloudfrontlambda+6
Amazon Cognito Deep Dive: Beyond Basic Authentication

A comprehensive technical guide to Amazon Cognito's advanced features including custom authentication flows, federation patterns, multi-tenancy architectures, migration strategies, and production-grade security implementation.

awscognitoauthentication+7
AWS Secrets Manager & Parameter Store: Security Best Practices

A comprehensive technical guide comparing AWS Secrets Manager and Systems Manager Parameter Store, demonstrating when to use each service with real-world implementation patterns.

awssecrets-managerparameter-store+8
AWS Cost Optimization Toolkit - Practical Strategies for Production Workloads

A comprehensive guide to reducing AWS costs by 40-70% through systematic optimization using native AWS services, automation, and proven implementation patterns.

awscost-optimizationfinops+5
Mozilla SOPS: GitOps-Native Secret Encryption That Actually Works

A comprehensive guide to Mozilla SOPS for managing encrypted secrets in Git repositories. Learn age encryption, AWS CDK patterns, AWS Lambda integration, and production-ready security strategies for serverless workflows.

sopsgitopsterraform+9
AWS AppSync & GraphQL: Building Production-Ready Real-time APIs

A comprehensive guide to building scalable real-time APIs with AWS AppSync, covering JavaScript resolvers, subscription filtering, caching strategies, and infrastructure as code patterns.

awsappsyncgraphql+5
SNS/SQS Cross-Account Fan-Out: Building Multi-Account Event Distribution in AWS

Learn how to implement secure cross-account event distribution using Amazon SNS and SQS. Covers IAM policies, KMS encryption, AWS CDK implementation, and common pitfalls from real-world deployments.

awsaws-snsaws-sqs+6
Saga Pattern for Distributed Transactions: Maintaining Consistency Without ACID

A comprehensive guide to implementing the Saga pattern for managing distributed transactions across microservices with AWS Step Functions and EventBridge, including idempotency, compensation logic, and production-ready patterns.

saga-patterndistributed-systemsmicroservices+5
AWS Messaging Services: SQS vs SNS vs EventBridge - A Decision Framework

Stop choosing based on features; choose based on your communication pattern. A practical guide to selecting between SQS, SNS, and EventBridge with working CDK examples and cost analysis.

aws-sqsaws-snsaws-eventbridge+5
AWS Step Functions Deep Dive: Building Resilient Workflow Orchestration

Master AWS Step Functions for production-ready serverless workflows. Learn Standard vs Express workflows, Distributed Map processing, error handling patterns, callback integration, and cost optimization strategies with working CDK examples.

aws-step-functionsaws-cdkserverless+4
Breaking Through CloudFormation's 500 Resource Barrier: Practical Strategies for Large-Scale Infrastructure

Exploring proven strategies to overcome CloudFormation's 500 resource limit using nested stacks, cross-stack references, SSM Parameter Store, and microstack architecture with real TypeScript CDK examples and decision frameworks.

aws-cdkcloudformationinfrastructure-as-code+4
AWS CDK Code Organization: Service-Based vs Domain-Based Architecture Patterns

Learn when to use service-based, domain-based, feature-based, or layer-based organization patterns in AWS CDK projects. Includes decision frameworks, working examples, and migration strategies for maintainable infrastructure code.

aws-cdktypescriptinfrastructure-as-code+3
AWS CDK Functional Patterns: Building Reusable, Error-Free Infrastructure Configurations

Learn how functional programming patterns - factory functions, higher-order functions, and composition - transform AWS CDK from a CloudFormation generator into a type-safe, reusable infrastructure toolkit that prevents configuration drift and runtime errors.

aws-cdktypescriptinfrastructure-as-code+2
Builder Pattern in TypeScript: Type-Safe Configuration Across Modern Applications

Explore how the Builder pattern leverages TypeScript's type system to create safe, discoverable APIs across serverless, data layers, and testing - with working examples from AWS CDK, query builders, and more.

typescriptdesign-patternsaws-cdk+2
Lambda Layer Versioning Strategies for Multi-Environment Deployments

Practical approaches to managing Lambda Layer versions across dev, staging, and production environments with AWS CDK, including automated deployment pipelines and rollback strategies.

awslambdaaws-cdk+4
Building Ephemeral Preview Environments with AWS CDK and Serverless

Learn to build automated preview environments using AWS CDK, Lambda, and GitHub Actions for seamless PR testing and review workflows

aws-cdkserverlessci-cd+5
AWS CDK Link Shortener Part 5: Scaling & Long-term Maintenance5/5

Multi-region deployment, database scaling strategies, disaster recovery patterns, and long-term maintenance approaches. Practical patterns for production systems at scale and architectural decisions for long-term success.

aws-cdkmulti-regiondisaster-recovery+5
AWS CDK Link Shortener Part 3: Advanced Features & Security4/5

Implementing custom domains, bulk operations, URL expiration, and comprehensive security measures. Defense-in-depth protection strategies for production link shortener services.

aws-cdklambdasecurity+6
AWS CDK Link Shortener Part 4: Production Deployment & Optimization3/5

Multi-environment deployment strategies, performance optimization at scale, and cost management. Production insights and lessons learned with proper monitoring and incident response patterns.

aws-cdklambdadynamodb+6
API Versioning with AWS CDK: A Production Case Study

A technical case study on implementing multi-version APIs in production. Failed approaches, working solutions, and CDK patterns for managing API evolution.

api-gatewayawsaws-cdk+3
AWS CDK Link Shortener Part 1: Project Setup & Basic Infrastructure2/5

Setting up a production-grade link shortener with AWS CDK, DynamoDB, and Lambda. Real architecture decisions, initial setup, and lessons learned from building URL shorteners at scale.

aws-cdklambdadynamodb+6
AWS CDK Link Shortener Part 2: Core Functionality & API Development1/5

Building the redirect engine, analytics collection, and API Gateway configuration. Real performance optimizations and debugging strategies from handling millions of daily redirects.

aws-cdklambdaapi-gateway+6
AWS Lambda + S3 Signed URLs: A Practical Solution for Large File Uploads

A practical approach to handling large file uploads using S3 signed URLs instead of Lambda proxies. Complete implementation with CDK, security considerations, and lessons learned from production experience.

lambdaaws-cdkaws+2
Migrating from Serverless Framework to AWS CDK: Part 1 - Why Make the Switch?6/6

Explore the motivations behind migrating from Serverless Framework to AWS CDK, including licensing changes, architectural advantages, and when CDK becomes the better choice for your serverless applications.

awsaws-cdkmigration
Migrating from Serverless Framework to AWS CDK: Part 2 - Setting Up Your CDK Environment5/6

Learn how to structure a CDK project for serverless applications, configure TypeScript for Lambda development, and establish patterns that ease migration from Serverless Framework.

aws-cdktutorial
Migrating from Serverless Framework to AWS CDK: Part 3 - Lambda Functions and API Gateway4/6

Deep dive into migrating Lambda functions, API Gateway configurations, request validations, and error handling from Serverless Framework to AWS CDK with practical examples.

api-gatewayawsaws-cdk+2
Migrating from Serverless Framework to AWS CDK: Part 4 - Database and Environment Management3/6

Master DynamoDB migrations, environment variable management, secrets handling, and VPC configurations when moving from Serverless Framework to AWS CDK.

awsaws-cdkdynamodb+5
Migrating from Serverless Framework to AWS CDK: Part 6 - Migration Strategies and Best Practices2/6

Execute a smooth migration from Serverless Framework to AWS CDK with proven strategies, testing approaches, rollback procedures, and performance optimization techniques.

aws-cdkmonitoringperformance
Migrating from Serverless Framework to AWS CDK: Part 5 - Authentication, Authorization, and IAM1/6

Implement robust authentication with Cognito, API Gateway authorizers, and fine-grained IAM policies when migrating from Serverless Framework to AWS CDK.

authorizationaws-cdkcognito+3
Zod + OpenAPI + AWS Lambda: How Documentation Drift Led Me to Schema-First Development

How a 'simple' API change broke an enterprise client integration overnight, why documentation drift causes real problems, and a practical system that generates OpenAPI specs from Zod schemas automatically.

api-gatewayaws-cdklambda+5