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.
