aws-solution-architect

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

AWS Solution Architect

AWS解决方案架构师

Design scalable, cost-effective AWS architectures for startups with infrastructure-as-code templates.

为初创企业设计可扩展、经济高效的AWS架构,并提供基础设施即代码(IaC)模板。

Table of Contents

目录

Trigger Terms

触发词

Use this skill when you encounter:
CategoryTerms
Architecture Designserverless architecture, AWS architecture, cloud design, microservices, three-tier
IaC GenerationCloudFormation, CDK, Terraform, infrastructure as code, deploy template
ServerlessLambda, API Gateway, DynamoDB, Step Functions, EventBridge, AppSync
ContainersECS, Fargate, EKS, container orchestration, Docker on AWS
Cost Optimizationreduce AWS costs, optimize spending, right-sizing, Savings Plans
DatabaseAurora, RDS, DynamoDB design, database migration, data modeling
SecurityIAM policies, VPC design, encryption, Cognito, WAF
CI/CDCodePipeline, CodeBuild, CodeDeploy, GitHub Actions AWS
MonitoringCloudWatch, X-Ray, observability, alarms, dashboards
Migrationmigrate to AWS, lift and shift, replatform, DMS

当遇到以下内容时使用本技能:
分类触发词
架构设计serverless architecture, AWS architecture, cloud design, microservices, three-tier
IaC生成CloudFormation, CDK, Terraform, infrastructure as code, deploy template
无服务器Lambda, API Gateway, DynamoDB, Step Functions, EventBridge, AppSync
容器ECS, Fargate, EKS, container orchestration, Docker on AWS
成本优化reduce AWS costs, optimize spending, right-sizing, Savings Plans
数据库Aurora, RDS, DynamoDB design, database migration, data modeling
安全IAM policies, VPC design, encryption, Cognito, WAF
CI/CDCodePipeline, CodeBuild, CodeDeploy, GitHub Actions AWS
监控CloudWatch, X-Ray, observability, alarms, dashboards
迁移migrate to AWS, lift and shift, replatform, DMS

Workflow

工作流程

Step 1: Gather Requirements

步骤1:收集需求

Collect application specifications:
- Application type (web app, mobile backend, data pipeline, SaaS)
- Expected users and requests per second
- Budget constraints (monthly spend limit)
- Team size and AWS experience level
- Compliance requirements (GDPR, HIPAA, SOC 2)
- Availability requirements (SLA, RPO/RTO)
收集应用规格:
- 应用类型(Web应用、移动后端、数据流水线、SaaS)
- 预期用户数和每秒请求数
- 预算限制(月度支出上限)
- 团队规模和AWS经验水平
- 合规要求(GDPR、HIPAA、SOC 2)
- 可用性要求(SLA、RPO/RTO)

Step 2: Design Architecture

步骤2:设计架构

Run the architecture designer to get pattern recommendations:
bash
python scripts/architecture_designer.py --input requirements.json
Select from recommended patterns:
  • Serverless Web: S3 + CloudFront + API Gateway + Lambda + DynamoDB
  • Event-Driven Microservices: EventBridge + Lambda + SQS + Step Functions
  • Three-Tier: ALB + ECS Fargate + Aurora + ElastiCache
  • GraphQL Backend: AppSync + Lambda + DynamoDB + Cognito
See
references/architecture_patterns.md
for detailed pattern specifications.
运行架构设计器获取模式建议:
bash
python scripts/architecture_designer.py --input requirements.json
从推荐模式中选择:
  • 无服务器Web架构:S3 + CloudFront + API Gateway + Lambda + DynamoDB
  • 事件驱动微服务:EventBridge + Lambda + SQS + Step Functions
  • 三层架构:ALB + ECS Fargate + Aurora + ElastiCache
  • GraphQL后端:AppSync + Lambda + DynamoDB + Cognito
查看
references/architecture_patterns.md
获取详细的模式说明。

Step 3: Generate IaC Templates

步骤3:生成IaC模板

Create infrastructure-as-code for the selected pattern:
bash
undefined
为选定的模式创建基础设施即代码:
bash
undefined

Serverless stack (CloudFormation)

无服务器堆栈(CloudFormation)

python scripts/serverless_stack.py --app-name my-app --region us-east-1
python scripts/serverless_stack.py --app-name my-app --region us-east-1

Output: CloudFormation YAML template ready to deploy

输出:可直接部署的CloudFormation YAML模板

undefined
undefined

Step 4: Review Costs

步骤4:成本审核

Analyze estimated costs and optimization opportunities:
bash
python scripts/cost_optimizer.py --resources current_setup.json --monthly-spend 2000
Output includes:
  • Monthly cost breakdown by service
  • Right-sizing recommendations
  • Savings Plans opportunities
  • Potential monthly savings
分析预估成本和优化机会:
bash
python scripts/cost_optimizer.py --resources current_setup.json --monthly-spend 2000
输出内容包括:
  • 按服务划分的月度成本明细
  • 资源合理配置建议
  • Savings Plans 机会分析
  • 潜在月度节省金额

Step 5: Deploy

步骤5:部署

Deploy the generated infrastructure:
bash
undefined
部署生成的基础设施:
bash
undefined

CloudFormation

CloudFormation

aws cloudformation create-stack
--stack-name my-app-stack
--template-body file://template.yaml
--capabilities CAPABILITY_IAM
aws cloudformation create-stack
--stack-name my-app-stack
--template-body file://template.yaml
--capabilities CAPABILITY_IAM

CDK

CDK

cdk deploy
cdk deploy

Terraform

Terraform

terraform init && terraform apply
undefined
terraform init && terraform apply
undefined

Step 6: Validate

步骤6:验证

Verify deployment and set up monitoring:
bash
undefined
验证部署并设置监控:
bash
undefined

Check stack status

检查堆栈状态

aws cloudformation describe-stacks --stack-name my-app-stack
aws cloudformation describe-stacks --stack-name my-app-stack

Set up CloudWatch alarms

设置CloudWatch告警

aws cloudwatch put-metric-alarm --alarm-name high-errors ...

---
aws cloudwatch put-metric-alarm --alarm-name high-errors ...

---

Tools

工具

architecture_designer.py

architecture_designer.py

Generates architecture patterns based on requirements.
bash
python scripts/architecture_designer.py --input requirements.json --output design.json
Input: JSON with app type, scale, budget, compliance needs Output: Recommended pattern, service stack, cost estimate, pros/cons
根据需求生成架构模式。
bash
python scripts/architecture_designer.py --input requirements.json --output design.json
输入:包含应用类型、规模、预算、合规需求的JSON文件 输出:推荐模式、服务堆栈、成本预估、优缺点

serverless_stack.py

serverless_stack.py

Creates serverless CloudFormation templates.
bash
python scripts/serverless_stack.py --app-name my-app --region us-east-1
Output: Production-ready CloudFormation YAML with:
  • API Gateway + Lambda
  • DynamoDB table
  • Cognito user pool
  • IAM roles with least privilege
  • CloudWatch logging
创建无服务器CloudFormation模板。
bash
python scripts/serverless_stack.py --app-name my-app --region us-east-1
输出:可用于生产环境的CloudFormation YAML模板,包含:
  • API Gateway + Lambda
  • DynamoDB表
  • Cognito用户池
  • 遵循最小权限原则的IAM角色
  • CloudWatch日志

cost_optimizer.py

cost_optimizer.py

Analyzes costs and recommends optimizations.
bash
python scripts/cost_optimizer.py --resources inventory.json --monthly-spend 5000
Output: Recommendations for:
  • Idle resource removal
  • Instance right-sizing
  • Reserved capacity purchases
  • Storage tier transitions
  • NAT Gateway alternatives

分析成本并提供优化建议。
bash
python scripts/cost_optimizer.py --resources inventory.json --monthly-spend 5000
输出:以下方面的优化建议:
  • 移除闲置资源
  • 实例合理配置
  • 预留容量购买
  • 存储层转换
  • NAT Gateway替代方案

Quick Start

快速开始

MVP Architecture (< $100/month)

MVP架构(月度成本<100美元)

Ask: "Design a serverless MVP backend for a mobile app with 1000 users"

Result:
- Lambda + API Gateway for API
- DynamoDB pay-per-request for data
- Cognito for authentication
- S3 + CloudFront for static assets
- Estimated: $20-50/month
提问:"为拥有1000用户的移动应用设计无服务器MVP后端"

结果:
- Lambda + API Gateway 用于API服务
- DynamoDB 按请求付费模式存储数据
- Cognito 用于身份验证
- S3 + CloudFront 用于静态资源
- 预估成本:20-50美元/月

Scaling Architecture ($500-2000/month)

可扩展架构(月度成本500-2000美元)

Ask: "Design a scalable architecture for a SaaS platform with 50k users"

Result:
- ECS Fargate for containerized API
- Aurora Serverless for relational data
- ElastiCache for session caching
- CloudFront for CDN
- CodePipeline for CI/CD
- Multi-AZ deployment
提问:"为拥有5万用户的SaaS平台设计可扩展架构"

结果:
- ECS Fargate 用于容器化API
- Aurora Serverless 用于关系型数据存储
- ElastiCache 用于会话缓存
- CloudFront 用于CDN
- CodePipeline 用于CI/CD
- 多AZ部署

Cost Optimization

成本优化

Ask: "Optimize my AWS setup to reduce costs by 30%. Current spend: $3000/month"

Provide: Current resource inventory (EC2, RDS, S3, etc.)

Result:
- Idle resource identification
- Right-sizing recommendations
- Savings Plans analysis
- Storage lifecycle policies
- Target savings: $900/month
提问:"优化我的AWS设置以降低30%的成本。当前月度支出:3000美元"

提供:当前资源清单(EC2、RDS、S3等)

结果:
- 闲置资源识别
- 资源合理配置建议
- Savings Plans 分析
- 存储生命周期策略
- 目标节省金额:900美元/月

IaC Generation

IaC生成

Ask: "Generate CloudFormation for a three-tier web app with auto-scaling"

Result:
- VPC with public/private subnets
- ALB with HTTPS
- ECS Fargate with auto-scaling
- Aurora with read replicas
- Security groups and IAM roles

提问:"为带有自动扩缩容的三层Web应用生成CloudFormation模板"

结果:
- 包含公有/私有子网的VPC
- 带HTTPS的ALB
- 带自动扩缩容的ECS Fargate
- 带只读副本的Aurora
- 安全组和IAM角色

Input Requirements

输入要求

Provide these details for architecture design:
RequirementDescriptionExample
Application typeWhat you're buildingSaaS platform, mobile backend
Expected scaleUsers, requests/sec10k users, 100 RPS
BudgetMonthly AWS limit$500/month max
Team contextSize, AWS experience3 devs, intermediate
ComplianceRegulatory needsHIPAA, GDPR, SOC 2
AvailabilityUptime requirements99.9% SLA, 1hr RPO
JSON Format:
json
{
  "application_type": "saas_platform",
  "expected_users": 10000,
  "requests_per_second": 100,
  "budget_monthly_usd": 500,
  "team_size": 3,
  "aws_experience": "intermediate",
  "compliance": ["SOC2"],
  "availability_sla": "99.9%"
}

架构设计需提供以下细节:
要求描述示例
应用类型你要构建的产品类型SaaS平台、移动后端
预期规模用户数、每秒请求数1万用户、100 RPS
预算AWS月度支出上限最高500美元/月
团队背景团队规模、AWS经验水平3名开发人员、中等经验
合规要求监管需求HIPAA、GDPR、SOC 2
可用性停机时间要求99.9% SLA、1小时RPO
JSON格式:
json
{
  "application_type": "saas_platform",
  "expected_users": 10000,
  "requests_per_second": 100,
  "budget_monthly_usd": 500,
  "team_size": 3,
  "aws_experience": "intermediate",
  "compliance": ["SOC2"],
  "availability_sla": "99.9%"
}

Output Formats

输出格式

Architecture Design

架构设计

  • Pattern recommendation with rationale
  • Service stack diagram (ASCII)
  • Configuration specifications
  • Monthly cost estimate
  • Scaling characteristics
  • Trade-offs and limitations
  • 带理由的模式推荐
  • ASCII格式的服务堆栈图
  • 配置规格
  • 月度成本预估
  • 扩缩容特性
  • 权衡点和限制

IaC Templates

IaC模板

  • CloudFormation YAML: Production-ready SAM/CFN templates
  • CDK TypeScript: Type-safe infrastructure code
  • Terraform HCL: Multi-cloud compatible configs
  • CloudFormation YAML:可用于生产环境的SAM/CFN模板
  • CDK TypeScript:类型安全的基础设施代码
  • Terraform HCL:多云兼容配置

Cost Analysis

成本分析

  • Current spend breakdown
  • Optimization recommendations with savings
  • Priority action list (high/medium/low)
  • Implementation checklist

  • 当前支出明细
  • 带节省金额的优化建议
  • 优先级行动列表(高/中/低)
  • 实施检查清单

Reference Documentation

参考文档

DocumentContents
references/architecture_patterns.md
6 patterns: serverless, microservices, three-tier, data processing, GraphQL, multi-region
references/service_selection.md
Decision matrices for compute, database, storage, messaging
references/best_practices.md
Serverless design, cost optimization, security hardening, scalability

文档内容
references/architecture_patterns.md
6种模式:无服务器、微服务、三层架构、数据处理、GraphQL、多区域
references/service_selection.md
计算、数据库、存储、消息服务的决策矩阵
references/best_practices.md
无服务器设计、成本优化、安全加固、可扩展性

Limitations

限制

  • Lambda: 15-minute execution, 10GB memory max
  • API Gateway: 29-second timeout, 10MB payload
  • DynamoDB: 400KB item size, eventually consistent by default
  • Regional availability varies by service
  • Some services have AWS-specific lock-in
  • Lambda:最长15分钟执行时间,最大10GB内存
  • API Gateway:最长29秒超时,最大10MB负载
  • DynamoDB:最大400KB条目大小,默认最终一致性
  • 服务的区域可用性因地区而异
  • 部分服务存在AWS专属锁定