wankimmy/bossku-ai/bosskuai-aws-deployment
Claude Code and agent skill by wankimmy/bossku-ai
- community
Checking that the SKILL.md file is still in the repository.
Use when deploying or operating on AWS: compute choice (ECS Fargate, ECS Express Mode, Lambda, EC2, EKS; App Runner only for existing services), IAM, VPC, CloudFront, RDS, S3, SQS, secrets, OIDC deploys, Terraform or CDK, CloudWatch, DR, and cost guardrails.
Install
npx vskill@latest install wankimmy/bossku-ai/bosskuai-aws-deploymentSKILL.md
BosskuAI AWS Deployment
Use this skill when the target is AWS and the answer depends on which managed service to use, how to wire IAM and networking safely, and how to deploy and roll back without a console click.
How this differs from nearby skills
- `bosskuai-devops-iac`: platform-agnostic delivery principles; this skill maps them to concrete AWS services.
- `bosskuai-ci-cd-pipelines`: the pipeline stages; this skill supplies the AWS deploy step, OIDC role, and rollback mechanics.
- `bosskuai-vps-docker-deployment` / `bosskuai-hostinger-hosting`: one box; use this skill when you need managed databases, autoscaling, or compliance boundaries.
- `bosskuai-cost-optimization`: cross-vendor spend; this skill bakes the AWS-specific cost traps into the design.
- `bosskuai-observability-sre`: SLOs and alerting strategy; this skill implements them with CloudWatch.
Mindset
- Managed over self-run: RDS, not Postgres on EC2; SQS, not a Redis queue you babysit, unless the app already depends on it.
- IAM is the blast radius. Roles per workload, no long-lived access keys, OIDC from CI.
- Everything through IaC with plan review; the console is for reading.
- One AWS account per environment under Organizations; guardrails (SCPs, budgets, CloudTrail, GuardDuty) before the first workload.
- Region choice is a compliance and latency decision:
ap-southeast-5(Malaysia) for PDPA data residency,ap-southeast-1(Singapore) for the broadest service catalog; confirm the needed services exist in the chosen region.
Compute decision table
| Workload | Pick | Because | |
|---|---|---|---|
| Container web app, small team, minimal ops | ECS Express Mode | One call provisions a Fargate service, ALB, TLS, and autoscaling; App Runner is closed to new customers (existing services only) | |
| Web services, workers, schedulers with predictable traffic | ECS Fargate | Containers without node management; sidecars, long-running tasks, private networking | |
| Event-driven, spiky, short jobs | Lambda | Pay per invocation; watch cold starts, 15-minute limit, DB connection storms (use RDS Proxy) | |
| Static or SSR frontend (Next.js, Nuxt) | Amplify Hosting or S3 + CloudFront | CDN-first, preview branches | |
| Special hardware, licensing, legacy binaries, steady high utilization | EC2 (with ASG) | Only when containers cannot express it | |
| Many teams, existing Kubernetes skills, multi-cluster scale | EKS | Otherwise its operational cost outweighs the benefit |
Reference architecture for a Laravel / Nuxt / Node / Go SaaS
Route 53 → CloudFront (static, WAF) → ALB (TLS from ACM) → ECS Fargate services (web, worker, scheduler) in private subnets → RDS PostgreSQL or MySQL Multi-AZ in isolated subnets, ElastiCache Redis, SQS queues, S3 for uploads (private, presigned URLs), SES for email, ECR for images, Secrets Manager for credentials injected as task secrets, CloudWatch for logs and alarms. VPC endpoints for S3, ECR, Secrets Manager, and CloudWatch cut NAT gateway cost.
Networking and security
- VPC across 2–3 AZs: public subnets only for ALB and NAT, private for compute, isolated (no route to NAT) for data stores.
- Security groups reference other security groups, not CIDRs; nothing on the database SG from
0.0.0.0/0. - TLS at CloudFront and ALB with ACM; HTTP redirects to HTTPS; WAF managed rule sets plus rate limiting on login and API paths.
- IAM: task execution role (pull image, read secrets) separate from task role (app permissions); scoped resource ARNs; permission boundaries for CI roles.
- CI deploys through an OIDC trust to a deploy role limited to ECR push, task definition registration, and service update.
- Account guardrails: root MFA, CloudTrail organization trail, GuardDuty, Config rules for public S3 and open SGs, AWS Budgets alerts at 50/80/100%.
- Secrets Manager rotation: running tasks keep the secret they started with. Keep the old credential valid at the database or service until every task has restarted, or old tasks fail once they open new connections with it. Single-user rotation changes that password during rotation. Alternating-user rotation keeps it valid only until the next rotation, so the gap between rotations must be longer than the restart time.
Data
- RDS Multi-AZ for production, automated backups with PITR, snapshots copied cross-region for DR, deletion protection on.
- Aurora Serverless v2 when load is variable; RDS Proxy in front of Lambda or bursty pools.
- Parameter groups for
max_connections, slow query logging; Performance Insights on. - S3: block public access, versioning on buckets that hold user data, lifecycle rules to Intelligent-Tiering, SSE-KMS.
- Encryption at rest with KMS everywhere; key policies reviewed like IAM.
- Stateful resources (RDS, and S3 buckets or EBS volumes that hold data) get
prevent_destroyin Terraform, orDeletionPolicy: RetainplusUpdateReplacePolicy: Retainin CloudFormation, so a replacement in a plan cannot delete the old data. Read each plan for replacements, because a replacement that still runs creates an empty resource. - SQS standard queues deliver at least once, so handlers must be idempotent. For Lambda on SQS, set the queue visibility timeout to at least six times the function timeout, plus
MaximumBatchingWindowInSecondswhen a batch window is set. If that window is under 20 seconds, use 20 seconds instead, because a very low-traffic queue can make Lambda wait up to 20 seconds. A shorter timeout means the same message is processed twice.
Deploy and rollback
Before each deploy, read the versions in use from the repo: the Lambda runtime, the RDS engine, the ECS platform, and the Terraform or CDK and provider versions. Check each support end date and latest release live: the AWS docs (docs.aws.amazon.com) for services, the Terraform Registry (registry.terraform.io) for providers.
- CI builds the image, tags it with the git SHA (immutable), pushes to ECR with scan-on-push.
- Run migrations as a one-off ECS task from the new image, gated by a plan step; migrations must be backward compatible with the currently running version (expand/contract).
- Register a new task definition and update the service: rolling with minimum healthy 100% and circuit breaker on, or blue/green through CodeDeploy for high-risk services.
- ALB health checks decide readiness; alarms on 5xx and p99 gate the promotion. Old tasks drain through the ALB deregistration delay and the container's
stopTimeout, so the app must finish in-flight requests and handle SIGTERM inside that window. - Rollback is re-deploying the previous task definition revision; the previous image stays in ECR (lifecycle policy keeps the last N).
- Terraform: remote state in S3 with native S3 locking (
use_lockfile = true; DynamoDB locking is deprecated),planon pull requests,applyfrom main with a manual approval environment; CDK:cdk diffin PR,cdk deploywith--require-approvalfor IAM changes. - Before the first production run of a schema change, restore a recent production snapshot into a separate instance and run the migration there, comparing row counts. A rollback re-deploys the old task definition but keeps the rows the new version wrote. A point-in-time restore creates a new instance, so name who switches traffic to it.
Observability
- CloudWatch Logs with explicit retention (never "never expire"), structured JSON, log groups per service.
- Alarms: ALB 5xx rate, target response time p99, ECS CPU/memory, RDS CPU, free storage, connections, replica lag, SQS oldest message age and DLQ depth, Lambda errors and throttles.
- Tracing with X-Ray or OpenTelemetry to CloudWatch; dashboards per service; alarm actions to SNS → Slack or PagerDuty.
Cost guardrails
- NAT gateway data processing is the usual surprise bill; VPC endpoints and Fargate ARM (Graviton) images are the first two savings.
- Right-size Fargate tasks from CloudWatch metrics; buy Savings Plans only after a month of steady state.
- Schedule dev and staging environments off outside working hours; delete unattached EBS volumes and Elastic IPs.
- Tag everything (
env,service,owner) and enforce with tag policies so Cost Explorer can attribute spend.
Guardrails
- Do not create IAM users with access keys for applications or CI; roles and OIDC only.
- Do not expose RDS, ElastiCache, or OpenSearch to the internet, even "temporarily".
- Do not apply infrastructure changes without a reviewed plan or diff.
- Do not run production migrations from a laptop; use the pipeline's one-off task.
- Do not put secrets in task definition environment variables, Dockerfiles, or Terraform variables committed to git.
Output format
References
../../references/checklists/aws-deployment-checklist.md../../references/checklists/devops-iac-checklist.md../../references/checklists/security-risk-checklist.md../../references/checklists/engineering-quality-bar.md
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bosskuai-aws-deployment/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wankimmy/bossku-ai/bosskuai-aws-deployment)