A production-ready serverless web application demonstrating enterprise-grade AWS architecture with complete Infrastructure as Code (IaC), CI/CD pipelines, security, governance, and compliance features.
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β GitHub Repo βββββΆβ Step Functions βββββΆβ Lambda Functionsβ
β Source Code β β Orchestration β β (Multi-Env) β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Blue/Green β β VPC Network β β API Gateway β
β Deployments β β Isolation β β (Multi-Stage) β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β X-Ray Tracing β β Secrets Manager β β DynamoDB β
β & Monitoring β β & Shared Layers β β Auto-Scaling β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
- β AWS SAM Templates - Complete infrastructure definition
- β Multi-environment support (dev/staging/prod)
- β Parameter-driven deployments
- β Automated resource provisioning
- β Blue/green deployments for zero downtime
- β Environment promotion workflow
- β Automated deployment scripts
- β Rollback capabilities
- β X-Ray tracing for performance monitoring
- β CloudWatch integration for logs and metrics
- β SNS notifications for deployment status
- β Custom dashboards for operational insights
- β VPC network isolation with private subnets
- β Secrets Manager integration
- β IAM least privilege access
- β Encryption at rest and in transit
- β AWS Config rules for compliance monitoring
- β Auto-scaling configuration
- β Shared Lambda layers
- β Reserved concurrency limits
- β DynamoDB auto-scaling
- β Step Functions orchestration
- β AWS Config guardrails
- β Resource tagging policies
- β Cost monitoring & budgets
- Development: https://19y33kq4ti.execute-api.ap-south-1.amazonaws.com/Prod/hello/
- Production: https://d793b22f5g.execute-api.ap-south-1.amazonaws.com/Prod/hello/
Open web/index.html or demo.html in your browser for interactive testing.
βββ src/
β βββ handlers/ # Lambda function code
β β βββ hello-world/ # Main API handler
β βββ layers/ # Shared dependencies
β βββ common/ # Common utilities
βββ infrastructure/
β βββ parameters/ # Environment-specific configs
β βββ scripts/ # Deployment & management scripts
βββ governance/
β βββ vpc-template.yaml # Network isolation
β βββ guardrails.yaml # Compliance rules
β βββ step-functions.yaml # Orchestration workflows
β βββ step-functions/ # Workflow definitions
βββ testing/
β βββ manual-test-suite.sh # Automated test runner
β βββ interactive-tests.sh # Interactive testing menu
β βββ test-checklist.md # Manual testing guide
βββ web/
β βββ index.html # Web interface
β βββ demo.html # Standalone demo
βββ template.yaml # Main SAM template
βββ README.md # This file
Infrastructure:
- AWS SAM (Serverless Application Model)
- CloudFormation
- AWS Config
- Step Functions
Compute & API:
- AWS Lambda (Node.js 18.x)
- API Gateway
- DynamoDB with auto-scaling
Security & Networking:
- VPC with private subnets
- VPC Endpoints
- Secrets Manager
- IAM roles with least privilege
Monitoring & Governance:
- CloudWatch Logs & Metrics
- AWS X-Ray distributed tracing
- SNS notifications
- Cost budgets and alerts
- AWS CLI configured with appropriate permissions
- SAM CLI installed
- Node.js 18.x runtime
# Deploy to development
./infrastructure/scripts/deploy-env.sh dev
# Deploy to production
./infrastructure/scripts/deploy-env.sh prod
# Deploy enterprise governance
./governance/deploy-governance.sh prod
# Configure auto-scaling
./infrastructure/scripts/configure-scaling.sh prod
# Setup cost monitoring
./infrastructure/scripts/setup-cost-monitoring.sh prod# Run complete test suite
./testing/manual-test-suite.sh
# Interactive testing menu
./testing/interactive-tests.sh# Test APIs directly
curl https://19y33kq4ti.execute-api.ap-south-1.amazonaws.com/Prod/hello/
curl https://d793b22f5g.execute-api.ap-south-1.amazonaws.com/Prod/hello/
# Load testing
./infrastructure/scripts/scale-test.sh prod 50
# Check compliance
./governance/compliance-check.sh prod- Cold start optimization: < 1000ms
- API response time: < 200ms average
- 99.9% availability SLA
- Auto-scaling: Up to 1000 concurrent requests
- Cost reduction: 60% vs traditional hosting
deploy-env.sh- Deploy to specific environmentcheck-deployment.sh- Verify deployment statusconfigure-scaling.sh- Setup auto-scaling policies
update-secrets.sh- Update application secretstag-resources.sh- Apply cost tracking tags
cost-report.sh- Generate monthly cost reportssetup-cost-monitoring.sh- Configure budgets and alerts
deploy-governance.sh- Deploy enterprise governancecompliance-check.sh- Check compliance status
- CloudWatch Dashboards:
- X-Ray Traces: View Traces
- Cost & Budgets: Billing Dashboard
- Pay-per-use serverless model
- Auto-scaling based on demand
- Reserved capacity for predictable workloads
- Cost monitoring with $50/month budget
- Resource tagging for cost attribution
- VPC isolation with private subnets and VPC endpoints
- IAM roles with least privilege access
- Secrets management with AWS Secrets Manager
- Encryption at rest and in transit
- Compliance monitoring with AWS Config rules
- VPC with private subnets
- VPC endpoints for AWS services
- No internet gateway for Lambda functions
- Step Functions for workflow management
- Error handling and retry logic
- Scheduled and event-driven executions
- AWS Config rules for compliance
- Required resource tagging
- Encryption enforcement
- Public access prevention
- Real-time compliance checking
- Automated remediation alerts
- Cost and usage monitoring
- Security posture assessment
- API response times and error rates
- Lambda invocation metrics and duration
- DynamoDB performance metrics
- Cost and usage trends
- High error rate notifications
- Performance degradation alerts
- Cost threshold warnings
- Compliance violation alerts
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Create Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- β Zero-downtime deployments with blue/green strategy
- β Enterprise security with VPC isolation and compliance
- β Multi-environment infrastructure management
- β Cost optimization with auto-scaling and monitoring
- β Operational excellence with comprehensive monitoring
- β Governance & compliance with automated guardrails
Built with β€οΈ using AWS Serverless Technologies
This project demonstrates production-ready serverless architecture with enterprise-grade security, governance, and operational excellence.
