AWS Solution Architect for Startups
This skill provides comprehensive AWS architecture design expertise for startup companies, emphasizing serverless technologies, scalability, cost optimization, and modern cloud-native patterns.
Capabilities
- Serverless Architecture Design: Lambda, API Gateway, DynamoDB, EventBridge, Step Functions, AppSync
- Infrastructure as Code: CloudFormation, CDK (Cloud Development Kit), Terraform templates
- Scalable Application Architecture: Auto-scaling, load balancing, multi-region deployment
- Data & Storage Solutions: S3, RDS Aurora Serverless, DynamoDB, ElastiCache, Neptune
- Event-Driven Architecture: EventBridge, SNS, SQS, Kinesis, Lambda triggers
- API Design: API Gateway (REST & WebSocket), AppSync (GraphQL), rate limiting, authentication
- Authentication & Authorization: Cognito, IAM, fine-grained access control, federated identity
- CI/CD Pipelines: CodePipeline, CodeBuild, CodeDeploy, GitHub Actions integration
- Monitoring & Observability: CloudWatch, X-Ray, CloudTrail, alarms, dashboards
- Cost Optimization: Reserved instances, Savings Plans, right-sizing, budget alerts
- Security Best Practices: VPC design, security groups, WAF, Secrets Manager, encryption
- Microservices Patterns: Service mesh, API composition, saga patterns, CQRS
- Container Orchestration: ECS Fargate, EKS (Kubernetes), App Runner
- Content Delivery: CloudFront, edge locations, origin shield, caching strategies
- Database Migration: DMS, schema conversion, zero-downtime migrations
Input Requirements
Architecture design requires:
- Application type: Web app, mobile backend, data pipeline, microservices, SaaS platform
- Traffic expectations: Users/day, requests/second, geographic distribution
- Data requirements: Storage needs, database type, backup/retention policies
- Budget constraints: Monthly spend limits, cost optimization priorities
- Team size & expertise: Developer count, AWS experience level, DevOps maturity
- Compliance needs: GDPR, HIPAA, SOC 2, PCI-DSS, data residency
- Availability requirements: SLA targets, uptime goals, disaster recovery RPO/RTO
Formats accepted:
- Text description of application requirements
- JSON with structured architecture specifications
- Existing architecture diagrams or documentation
- Current AWS resource inventory (for optimization)
Output Formats
Results include:
- Architecture diagrams: Visual representations using draw.io or Lucidchart format
- CloudFormation/CDK templates: Infrastructure as Code (IaC) ready to deploy
- Terraform configurations: Multi-cloud compatible infrastructure definitions
- Cost estimates: Detailed monthly cost breakdown with optimization suggestions
- Security assessment: Best practices checklist, compliance validation
- Deployment guides: Step-by-step implementation instructions
- Runbooks: Operational procedures, troubleshooting guides, disaster recovery plans
- Migration strategies: Phased migration plans, rollback procedures
How to Use
"Design a serverless API backend for a mobile app with 100k users using Lambda and DynamoDB"
"Create a cost-optimized architecture for a SaaS platform with multi-tenancy"
"Generate CloudFormation template for a three-tier web application with auto-scaling"
"Design event-driven microservices architecture using EventBridge and Step Functions"
"Optimize my current AWS setup to reduce costs by 30%"
Scripts
architecture_designer.py: Generates architecture patterns and service recommendations
serverless_stack.py: Creates serverless application stacks (Lambda, API Gateway, DynamoDB)
cost_optimizer.py: Analyzes AWS costs and provides optimization recommendations
iac_generator.py: Generates CloudFormation, CDK, or Terraform templates
security_auditor.py: AWS security best practices validation and compliance checks
Architecture Patterns
1. Serverless Web Application
Use Case: SaaS platforms, mobile backends, low-traffic websites
Stack:
- Frontend: S3 + CloudFront (static hosting)
- API: API Gateway + Lambda
- Database: DynamoDB or Aurora Serverless
- Auth: Cognito
- CI/CD: Amplify or CodePipeline
Benefits: Zero server management, pay-per-use, auto-scaling, low operational overhead
Cost: $50-500/month for small to medium traffic
2. Event-Driven Microservices
Use Case: Complex business workflows, asynchronous processing, decoupled systems
Stack:
- Events: EventBridge (event bus)
- Processing: Lambda functions or ECS Fargate
- Queue: SQS (dead letter queues for failures)
- State Management: Step Functions
- Storage: DynamoDB, S3
Benefits: Loose coupling, independent scaling, failure isolation, easy testing
Cost: $100-1000/month depending on event volume
3. Modern Three-Tier Application
Use Case: Traditional web apps with dynamic content, e-commerce, CMS
Stack:
- Load Balancer: ALB (Application Load Balancer)
- Compute: ECS Fargate or EC2 Auto Scaling
- Database: RDS Aurora (MySQL/PostgreSQL)
- Cache: ElastiCache (Redis)
- CDN: CloudFront
- Storage: S3
Benefits: Proven pattern, easy to understand, flexible scaling
Cost: $300-2000/month depending on traffic and instance sizes
4. Real-Time Data Processing
Use Case: Analytics, IoT data ingestion, log processing, streaming
Stack:
- Ingestion: Kinesis Data Streams or Firehose
- Processing: Lambda or Kinesis Analytics
- Storage: S3 (data lake) + Athena (queries)
- Visualization: QuickSight
- Alerting: CloudWatch + SNS
Benefits: Handle millions of events, real-time insights, cost-effective storage
Cost: $200-1500/month depending on data volume
5. GraphQL API Backend
Use Case: Mobile apps, single-page applications, flexible data queries
Stack:
- API: AppSync (managed GraphQL)
- Resolvers: Lambda or direct DynamoDB integration
- Database: DynamoDB
- Real-time: AppSync subscriptions (WebSocket)
- Auth: Cognito or API keys
Benefits: Single endpoint, reduce over/under-fetching, real-time subscriptions
Cost: $50-400/month for moderate usage
6. Multi-Region High Availability
Use Case: Global applications, disaster recovery, compliance requirements
Stack:
- DNS: Route 53 (geolocation routing)
- CDN: CloudFront with multiple origins
- Compute: Multi-region Lambda or ECS
- Database: DynamoDB Global Tables or Aurora Global Database
- Replication: S3 cross-region replication
Benefits: Low latency globally, disaster recovery, data sovereignty
Cost: 1.5-2x single region costs
Best Practices
Serverless Design Principles
- Stateless functions - Store state in DynamoDB, S3, or ElastiCache
- Idempotency - Handle retries gracefully, use unique request IDs
- Cold start optimization - Use provisioned concurrency for critical paths, optimize package size
- Timeout management - Set appropriate timeouts, use Step Functions for long processes
- Error handling - Implement retry logic, dead letter queues, exponential backoff
Cost Optimization
- Right-sizing - Start small, monitor metrics, scale based on actual usage
- Reserved capacity - Use Savings Plans or Reserved Instances for predictable workloads
- S3 lifecycle policies - Transition to cheaper storage tiers (IA, Glacier)
- Lambda memory optimization - Test different memory settings for cost/performance balance
- CloudWatch log retention - Set appropriate retention periods (7-30 days for most)
- NAT Gateway alternatives - Use VPC endpoints, consider single NAT in dev environments
Security Hardening
- Principle of least privilege - IAM roles with minimal permissions
- Encryption everywhere - At rest (KMS) and in transit (TLS/SSL)
- Network isolation - Private subnets, security groups, NACLs
- Secrets management - Use Secrets Manager or Parameter Store, never hardcode
- API protection - WAF rules, rate limiting, API keys, OAuth2
- Audit logging - CloudTrail for API calls, VPC Flow Logs for network traffic
Scalability Design
- Horizontal over vertical - Scale out with more small instances vs. larger instances
- Database sharding - Partition data by tenant, geography, or time
- Read replicas - Offload read traffic from primary database
- Caching layers - CloudFront (edge), ElastiCache (application), DAX (DynamoDB)
- Async processing - Use queues (SQS) for non-critical operations
- Auto-scaling policies - Target tracking (CPU, requests) vs. step scaling
DevOps & Reliability
- Infrastructure as Code - Version control, peer review, automated testing
- Blue/Green deployments - Zero-downtime releases, instant rollback
- Canary releases - Test new versions with small traffic percentage
- Health checks - Application-level health endpoints, graceful degradation
- Chaos engineering - Test failure scenarios, validate recovery procedures
- Monitoring & alerting - Set up CloudWatch alarms for critical metrics
Service Selection Guide
Compute
- Lambda: Event-driven, short-duration tasks (<15 min), variable traffic
- Fargate: Containerized apps, long-running processes, predictable traffic
- EC2: Custom configurations, GPU/FPGA needs, Windows apps
- App Runner: Simple container deployment from source code
Database
- DynamoDB: Key-value, document store, serverless, single-digit ms latency
- Aurora Serverless: Relational DB, variable workloads, auto-scaling
- Aurora Standard: High-performance relational, predictable traffic
- RDS: Traditional databases (MySQL, PostgreSQL, MariaDB, SQL Server)
- DocumentDB: MongoDB-compatible, document store
- Neptune: Graph database for connected data
- Timestream: Time-series data, IoT metrics
Storage
- S3 Standard: Frequent access, low latency
- S3 Intelligent-Tiering: Automatic cost optimization
- S3 IA (Infrequent Access): Backups, archives (30-day minimum)
- S3 Glacier: Long-term archives, compliance
- EFS: Network file system, shared storage across instances
- EBS: Block storage for EC2, high IOPS
Messaging & Events
- EventBridge: Event bus, loosely coupled microservices
- SNS: Pub/sub, fan-out notifications
- SQS: Message queuing, decoupling, buffering
- Kinesis: Real-time streaming data, analytics
- MQ: Managed message brokers (RabbitMQ, ActiveMQ)
API & Integration
- API Gateway: REST APIs, WebSocket, throttling, caching
- AppSync: GraphQL APIs, real-time subscriptions
- AppFlow: SaaS integration (Salesforce, Slack, etc.)
- Step Functions: Workflow orchestration, state machines
Startup-Specific Considerations
MVP (Minimum Viable Product) Architecture
Goal: Launch fast, minimal infrastructure
Recommended:
- Amplify (full-stack deployment)
- Lambda + API Gateway + DynamoDB
- Cognito for auth
- CloudFront + S3 for frontend
Cost: $20-100/month
Setup time: 1-3 days
Growth Stage (Scaling to 10k-100k users)
Goal: Handle growth, maintain cost efficiency
Add:
- ElastiCache for caching
- Aurora Serverless for complex queries
- CloudWatch dashboards and alarms
- CI/CD pipeline (CodePipeline)
- Multi-AZ deployment
Cost: $500-2000/month
Migration time: 1-2 weeks
Scale-Up (100k+ users, Series A+)
Goal: Reliability, observability, global reach
Add:
- Multi-region deployment
- DynamoDB Global Tables
- Advanced monitoring (X-Ray, third-party APM)
- WAF and Shield for DDoS protection
- Dedicated support plan
- Reserved instances/Savings Plans
Cost: $3000-10000/month
Migration time: 1-3 months
Common Pitfalls to Avoid
Technical Debt
- Over-engineering early - Don't build for 10M users when you have 100
- Under-monitoring - Set up basic monitoring from day one
- Ignoring costs - Enable Cost Explorer and billing alerts immediately
- Single region dependency - Plan for multi-region from start
Security Mistakes
- Public S3 buckets - Use bucket policies, block public access
- Overly permissive IAM - Avoid "*" permissions, use specific resources
- Hardcoded credentials - Use IAM roles, Secrets Manager
- Unencrypted data - Enable encryption by default
Performance Issues
- No caching - Add CloudFront, ElastiCache early
- Inefficient queries - Use indexes, avoid scans in DynamoDB
- Large Lambda packages - Use layers, minimize dependencies
- N+1 queries - Implement DataLoader pattern, batch operations
Cost Surprises
- Undeleted resources - Tag everything, review regularly
- Data transfer costs - Keep traffic within same AZ/region when possible
- NAT Gateway charges - Use VPC endpoints for AWS services
- CloudWatch Logs accumulation - Set retention policies
Compliance & Governance
Data Residency
- Use specific regions (eu-west-1 for GDPR)
- Enable S3 bucket replication restrictions
- Configure Route 53 geolocation routing
HIPAA Compliance
- Use BAA-eligible services only
- Enable encryption at rest and in transit
- Implement audit logging (CloudTrail)
- Configure VPC with private subnets
SOC 2 / ISO 27001
- Enable AWS Config for compliance rules
- Use AWS Audit Manager
- Implement least privilege access
- Regular security assessments
Limitations
- Lambda limitations: 15-minute execution limit, 10GB memory max, cold start latency
- API Gateway limits: 29-second timeout, 10MB payload size
- DynamoDB limits: 400KB item size, eventually consistent reads by default
- Regional availability: Not all services available in all regions
- Vendor lock-in: Some serverless services are AWS-specific (consider abstraction layers)
- Learning curve: Requires AWS expertise, DevOps knowledge
- Debugging complexity: Distributed systems harder to troubleshoot than monoliths
Helpful Resources
1---
2name: aws-solution-architect
3description: Expert AWS solution architecture for startups focusing on serverless, scalable, and cost-effective cloud infrastructure with modern DevOps practices and infrastructure-as-code
4origin: "https://raw.githubusercontent.com/alirezarezvani/claude-code-skill-factory/main/generated-skills/aws-solution-architect/SKILL.md"
5metadata:
6 source: https://skillmd.com/skills/yanacuti1121/aws-solution-architect
7---
8
9# AWS Solution Architect for Startups
10
11This skill provides comprehensive AWS architecture design expertise for startup companies, emphasizing serverless technologies, scalability, cost optimization, and modern cloud-native patterns.
12
13## Capabilities
14
15- **Serverless Architecture Design**: Lambda, API Gateway, DynamoDB, EventBridge, Step Functions, AppSync
16- **Infrastructure as Code**: CloudFormation, CDK (Cloud Development Kit), Terraform templates
17- **Scalable Application Architecture**: Auto-scaling, load balancing, multi-region deployment
18- **Data & Storage Solutions**: S3, RDS Aurora Serverless, DynamoDB, ElastiCache, Neptune
19- **Event-Driven Architecture**: EventBridge, SNS, SQS, Kinesis, Lambda triggers
20- **API Design**: API Gateway (REST & WebSocket), AppSync (GraphQL), rate limiting, authentication
21- **Authentication & Authorization**: Cognito, IAM, fine-grained access control, federated identity
22- **CI/CD Pipelines**: CodePipeline, CodeBuild, CodeDeploy, GitHub Actions integration
23- **Monitoring & Observability**: CloudWatch, X-Ray, CloudTrail, alarms, dashboards
24- **Cost Optimization**: Reserved instances, Savings Plans, right-sizing, budget alerts
25- **Security Best Practices**: VPC design, security groups, WAF, Secrets Manager, encryption
26- **Microservices Patterns**: Service mesh, API composition, saga patterns, CQRS
27- **Container Orchestration**: ECS Fargate, EKS (Kubernetes), App Runner
28- **Content Delivery**: CloudFront, edge locations, origin shield, caching strategies
29- **Database Migration**: DMS, schema conversion, zero-downtime migrations
30
31## Input Requirements
32
33Architecture design requires:
34- **Application type**: Web app, mobile backend, data pipeline, microservices, SaaS platform
35- **Traffic expectations**: Users/day, requests/second, geographic distribution
36- **Data requirements**: Storage needs, database type, backup/retention policies
37- **Budget constraints**: Monthly spend limits, cost optimization priorities
38- **Team size & expertise**: Developer count, AWS experience level, DevOps maturity
39- **Compliance needs**: GDPR, HIPAA, SOC 2, PCI-DSS, data residency
40- **Availability requirements**: SLA targets, uptime goals, disaster recovery RPO/RTO
41
42Formats accepted:
43- Text description of application requirements
44- JSON with structured architecture specifications
45- Existing architecture diagrams or documentation
46- Current AWS resource inventory (for optimization)
47
48## Output Formats
49
50Results include:
51- **Architecture diagrams**: Visual representations using draw.io or Lucidchart format
52- **CloudFormation/CDK templates**: Infrastructure as Code (IaC) ready to deploy
53- **Terraform configurations**: Multi-cloud compatible infrastructure definitions
54- **Cost estimates**: Detailed monthly cost breakdown with optimization suggestions
55- **Security assessment**: Best practices checklist, compliance validation
56- **Deployment guides**: Step-by-step implementation instructions
57- **Runbooks**: Operational procedures, troubleshooting guides, disaster recovery plans
58- **Migration strategies**: Phased migration plans, rollback procedures
59
60## How to Use
61
62"Design a serverless API backend for a mobile app with 100k users using Lambda and DynamoDB"
63"Create a cost-optimized architecture for a SaaS platform with multi-tenancy"
64"Generate CloudFormation template for a three-tier web application with auto-scaling"
65"Design event-driven microservices architecture using EventBridge and Step Functions"
66"Optimize my current AWS setup to reduce costs by 30%"
67
68## Scripts
69
70- `architecture_designer.py`: Generates architecture patterns and service recommendations
71- `serverless_stack.py`: Creates serverless application stacks (Lambda, API Gateway, DynamoDB)
72- `cost_optimizer.py`: Analyzes AWS costs and provides optimization recommendations
73- `iac_generator.py`: Generates CloudFormation, CDK, or Terraform templates
74- `security_auditor.py`: AWS security best practices validation and compliance checks
75
76## Architecture Patterns
77
78### 1. Serverless Web Application
79**Use Case**: SaaS platforms, mobile backends, low-traffic websites
80
81**Stack**:
82- **Frontend**: S3 + CloudFront (static hosting)
83- **API**: API Gateway + Lambda
84- **Database**: DynamoDB or Aurora Serverless
85- **Auth**: Cognito
86- **CI/CD**: Amplify or CodePipeline
87
88**Benefits**: Zero server management, pay-per-use, auto-scaling, low operational overhead
89
90**Cost**: $50-500/month for small to medium traffic
91
92### 2. Event-Driven Microservices
93**Use Case**: Complex business workflows, asynchronous processing, decoupled systems
94
95**Stack**:
96- **Events**: EventBridge (event bus)
97- **Processing**: Lambda functions or ECS Fargate
98- **Queue**: SQS (dead letter queues for failures)
99- **State Management**: Step Functions
100- **Storage**: DynamoDB, S3
101
102**Benefits**: Loose coupling, independent scaling, failure isolation, easy testing
103
104**Cost**: $100-1000/month depending on event volume
105
106### 3. Modern Three-Tier Application
107**Use Case**: Traditional web apps with dynamic content, e-commerce, CMS
108
109**Stack**:
110- **Load Balancer**: ALB (Application Load Balancer)
111- **Compute**: ECS Fargate or EC2 Auto Scaling
112- **Database**: RDS Aurora (MySQL/PostgreSQL)
113- **Cache**: ElastiCache (Redis)
114- **CDN**: CloudFront
115- **Storage**: S3
116
117**Benefits**: Proven pattern, easy to understand, flexible scaling
118
119**Cost**: $300-2000/month depending on traffic and instance sizes
120
121### 4. Real-Time Data Processing
122**Use Case**: Analytics, IoT data ingestion, log processing, streaming
123
124**Stack**:
125- **Ingestion**: Kinesis Data Streams or Firehose
126- **Processing**: Lambda or Kinesis Analytics
127- **Storage**: S3 (data lake) + Athena (queries)
128- **Visualization**: QuickSight
129- **Alerting**: CloudWatch + SNS
130
131**Benefits**: Handle millions of events, real-time insights, cost-effective storage
132
133**Cost**: $200-1500/month depending on data volume
134
135### 5. GraphQL API Backend
136**Use Case**: Mobile apps, single-page applications, flexible data queries
137
138**Stack**:
139- **API**: AppSync (managed GraphQL)
140- **Resolvers**: Lambda or direct DynamoDB integration
141- **Database**: DynamoDB
142- **Real-time**: AppSync subscriptions (WebSocket)
143- **Auth**: Cognito or API keys
144
145**Benefits**: Single endpoint, reduce over/under-fetching, real-time subscriptions
146
147**Cost**: $50-400/month for moderate usage
148
149### 6. Multi-Region High Availability
150**Use Case**: Global applications, disaster recovery, compliance requirements
151
152**Stack**:
153- **DNS**: Route 53 (geolocation routing)
154- **CDN**: CloudFront with multiple origins
155- **Compute**: Multi-region Lambda or ECS
156- **Database**: DynamoDB Global Tables or Aurora Global Database
157- **Replication**: S3 cross-region replication
158
159**Benefits**: Low latency globally, disaster recovery, data sovereignty
160
161**Cost**: 1.5-2x single region costs
162
163## Best Practices
164
165### Serverless Design Principles
1661. **Stateless functions** - Store state in DynamoDB, S3, or ElastiCache
1672. **Idempotency** - Handle retries gracefully, use unique request IDs
1683. **Cold start optimization** - Use provisioned concurrency for critical paths, optimize package size
1694. **Timeout management** - Set appropriate timeouts, use Step Functions for long processes
1705. **Error handling** - Implement retry logic, dead letter queues, exponential backoff
171
172### Cost Optimization
1731. **Right-sizing** - Start small, monitor metrics, scale based on actual usage
1742. **Reserved capacity** - Use Savings Plans or Reserved Instances for predictable workloads
1753. **S3 lifecycle policies** - Transition to cheaper storage tiers (IA, Glacier)
1764. **Lambda memory optimization** - Test different memory settings for cost/performance balance
1775. **CloudWatch log retention** - Set appropriate retention periods (7-30 days for most)
1786. **NAT Gateway alternatives** - Use VPC endpoints, consider single NAT in dev environments
179
180### Security Hardening
1811. **Principle of least privilege** - IAM roles with minimal permissions
1822. **Encryption everywhere** - At rest (KMS) and in transit (TLS/SSL)
1833. **Network isolation** - Private subnets, security groups, NACLs
1844. **Secrets management** - Use Secrets Manager or Parameter Store, never hardcode
1855. **API protection** - WAF rules, rate limiting, API keys, OAuth2
1866. **Audit logging** - CloudTrail for API calls, VPC Flow Logs for network traffic
187
188### Scalability Design
1891. **Horizontal over vertical** - Scale out with more small instances vs. larger instances
1902. **Database sharding** - Partition data by tenant, geography, or time
1913. **Read replicas** - Offload read traffic from primary database
1924. **Caching layers** - CloudFront (edge), ElastiCache (application), DAX (DynamoDB)
1935. **Async processing** - Use queues (SQS) for non-critical operations
1946. **Auto-scaling policies** - Target tracking (CPU, requests) vs. step scaling
195
196### DevOps & Reliability
1971. **Infrastructure as Code** - Version control, peer review, automated testing
1982. **Blue/Green deployments** - Zero-downtime releases, instant rollback
1993. **Canary releases** - Test new versions with small traffic percentage
2004. **Health checks** - Application-level health endpoints, graceful degradation
2015. **Chaos engineering** - Test failure scenarios, validate recovery procedures
2026. **Monitoring & alerting** - Set up CloudWatch alarms for critical metrics
203
204## Service Selection Guide
205
206### Compute
207- **Lambda**: Event-driven, short-duration tasks (<15 min), variable traffic
208- **Fargate**: Containerized apps, long-running processes, predictable traffic
209- **EC2**: Custom configurations, GPU/FPGA needs, Windows apps
210- **App Runner**: Simple container deployment from source code
211
212### Database
213- **DynamoDB**: Key-value, document store, serverless, single-digit ms latency
214- **Aurora Serverless**: Relational DB, variable workloads, auto-scaling
215- **Aurora Standard**: High-performance relational, predictable traffic
216- **RDS**: Traditional databases (MySQL, PostgreSQL, MariaDB, SQL Server)
217- **DocumentDB**: MongoDB-compatible, document store
218- **Neptune**: Graph database for connected data
219- **Timestream**: Time-series data, IoT metrics
220
221### Storage
222- **S3 Standard**: Frequent access, low latency
223- **S3 Intelligent-Tiering**: Automatic cost optimization
224- **S3 IA (Infrequent Access)**: Backups, archives (30-day minimum)
225- **S3 Glacier**: Long-term archives, compliance
226- **EFS**: Network file system, shared storage across instances
227- **EBS**: Block storage for EC2, high IOPS
228
229### Messaging & Events
230- **EventBridge**: Event bus, loosely coupled microservices
231- **SNS**: Pub/sub, fan-out notifications
232- **SQS**: Message queuing, decoupling, buffering
233- **Kinesis**: Real-time streaming data, analytics
234- **MQ**: Managed message brokers (RabbitMQ, ActiveMQ)
235
236### API & Integration
237- **API Gateway**: REST APIs, WebSocket, throttling, caching
238- **AppSync**: GraphQL APIs, real-time subscriptions
239- **AppFlow**: SaaS integration (Salesforce, Slack, etc.)
240- **Step Functions**: Workflow orchestration, state machines
241
242## Startup-Specific Considerations
243
244### MVP (Minimum Viable Product) Architecture
245**Goal**: Launch fast, minimal infrastructure
246
247**Recommended**:
248- Amplify (full-stack deployment)
249- Lambda + API Gateway + DynamoDB
250- Cognito for auth
251- CloudFront + S3 for frontend
252
253**Cost**: $20-100/month
254**Setup time**: 1-3 days
255
256### Growth Stage (Scaling to 10k-100k users)
257**Goal**: Handle growth, maintain cost efficiency
258
259**Add**:
260- ElastiCache for caching
261- Aurora Serverless for complex queries
262- CloudWatch dashboards and alarms
263- CI/CD pipeline (CodePipeline)
264- Multi-AZ deployment
265
266**Cost**: $500-2000/month
267**Migration time**: 1-2 weeks
268
269### Scale-Up (100k+ users, Series A+)
270**Goal**: Reliability, observability, global reach
271
272**Add**:
273- Multi-region deployment
274- DynamoDB Global Tables
275- Advanced monitoring (X-Ray, third-party APM)
276- WAF and Shield for DDoS protection
277- Dedicated support plan
278- Reserved instances/Savings Plans
279
280**Cost**: $3000-10000/month
281**Migration time**: 1-3 months
282
283## Common Pitfalls to Avoid
284
285### Technical Debt
286- **Over-engineering early** - Don't build for 10M users when you have 100
287- **Under-monitoring** - Set up basic monitoring from day one
288- **Ignoring costs** - Enable Cost Explorer and billing alerts immediately
289- **Single region dependency** - Plan for multi-region from start
290
291### Security Mistakes
292- **Public S3 buckets** - Use bucket policies, block public access
293- **Overly permissive IAM** - Avoid "*" permissions, use specific resources
294- **Hardcoded credentials** - Use IAM roles, Secrets Manager
295- **Unencrypted data** - Enable encryption by default
296
297### Performance Issues
298- **No caching** - Add CloudFront, ElastiCache early
299- **Inefficient queries** - Use indexes, avoid scans in DynamoDB
300- **Large Lambda packages** - Use layers, minimize dependencies
301- **N+1 queries** - Implement DataLoader pattern, batch operations
302
303### Cost Surprises
304- **Undeleted resources** - Tag everything, review regularly
305- **Data transfer costs** - Keep traffic within same AZ/region when possible
306- **NAT Gateway charges** - Use VPC endpoints for AWS services
307- **CloudWatch Logs accumulation** - Set retention policies
308
309## Compliance & Governance
310
311### Data Residency
312- Use specific regions (eu-west-1 for GDPR)
313- Enable S3 bucket replication restrictions
314- Configure Route 53 geolocation routing
315
316### HIPAA Compliance
317- Use BAA-eligible services only
318- Enable encryption at rest and in transit
319- Implement audit logging (CloudTrail)
320- Configure VPC with private subnets
321
322### SOC 2 / ISO 27001
323- Enable AWS Config for compliance rules
324- Use AWS Audit Manager
325- Implement least privilege access
326- Regular security assessments
327
328## Limitations
329
330- **Lambda limitations**: 15-minute execution limit, 10GB memory max, cold start latency
331- **API Gateway limits**: 29-second timeout, 10MB payload size
332- **DynamoDB limits**: 400KB item size, eventually consistent reads by default
333- **Regional availability**: Not all services available in all regions
334- **Vendor lock-in**: Some serverless services are AWS-specific (consider abstraction layers)
335- **Learning curve**: Requires AWS expertise, DevOps knowledge
336- **Debugging complexity**: Distributed systems harder to troubleshoot than monoliths
337
338## Helpful Resources
339
340- **AWS Well-Architected Framework**: https://aws.amazon.com/architecture/well-architected/
341- **AWS Architecture Center**: https://aws.amazon.com/architecture/
342- **Serverless Land**: https://serverlessland.com/
343- **AWS Pricing Calculator**: https://calculator.aws/
344- **AWS Cost Explorer**: Track and analyze spending
345- **AWS Trusted Advisor**: Automated best practice checks
346- **CloudFormation Templates**: https://github.com/awslabs/aws-cloudformation-templates
347- **AWS CDK Examples**: https://github.com/aws-samples/aws-cdk-examples