用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill aws命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | aws |
| description | AWS — ECS, EC2, RDS, S3, CloudFront, ALB, IAM best practices. |
Always ask: "Is there a managed service or simpler option that costs less?" Before adding a service, estimate monthly cost at expected load.
Free tier / low-cost anchors: EC2 t3.micro, RDS t3.micro, S3 Standard, CloudFront (1TB/month free tier), Lambda (1M req/month free).
Best for: small teams, predictable traffic, tight budgets.
Route 53 → CloudFront → ALB → EC2 (Docker + docker-compose) → RDS
Cost estimate (us-east-1): ~$30–80/month for t3.small EC2 + db.t3.micro RDS.
Best for: variable traffic, no ops overhead.
Route 53 → CloudFront → ALB → ECS Fargate Tasks → RDS Aurora Serverless
Cost estimate: ~$50–150/month depending on task size and usage.
Best for: simple HTTP APIs, minimal config.
ECR → App Runner → RDS Proxy → RDS
# Authenticate
aws ecr get-login-password --region us-east-1 | \
docker login --username AWS --password-stdin \
123456789.dkr.ecr.us-east-1.amazonaws.com
# Build and push
docker build -t myapp .
docker tag myapp:latest 123456789.dkr.ecr.us-east-1.amazonaws.com/myapp:$GIT_SHA
docker push 123456789.dkr.ecr.us-east-1.amazonaws.com/myapp:$GIT_SHA
# Enable lifecycle policy to avoid storage costs
aws ecr put-lifecycle-policy --repository-name myapp \
--lifecycle-policy-text '{"rules":[{"rulePriority":1,"selection":{"tagStatus":"untagged","countType":"imageCountMoreThan","countNumber":3},"action":{"type":"expire"}}]}'
{
"family": "myapp",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"cpu": "256",
"memory": "512",
"executionRoleArn": "arn:aws:iam::ACCOUNT:role/ecsTaskExecutionRole",
"containerDefinitions": [{
"name": "app",
"image": "ACCOUNT.dkr.ecr.REGION.amazonaws.com/myapp:TAG",
"portMappings": [{"containerPort": 8000}],
"environment": [{"name": "APP_ENV",
Never use environment variables for secrets in task definitions. Use SSM Parameter Store:
# Store
aws ssm put-parameter \
--name "/myapp/db-password" \
--value "supersecret" \
--type SecureString
# The ECS task execution role needs ssm:GetParameters permission
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"ssm:GetParameters",
"secretsmanager:GetSecretValue"
],
"Resource": [
"arn:aws:ssm:REGION:ACCOUNT:parameter/myapp/*"
]
}]
}
Rules:
# Check running ECS tasks
aws ecs list-tasks --cluster myapp-cluster --service-name myapp
# Get task logs
aws logs tail /ecs/myapp --follow
# Force new deployment
aws ecs update-service --cluster myapp-cluster --service myapp --force-new-deployment
# Check costs
aws ce get-cost-and-usage \
--time-period Start=2024-01-01,End=2024-01-31 \
--granularity MONTHLY \
--metrics BlendedCost