Skip to content
Back to skills

Aws Solution Architect

ASecurity

Recommends an AWS architecture pattern from requirements, checks it against budget and team, generates SAM/CDK/Terraform serverless templates, and finds cost savings in a resource inventory. Use when designing AWS architecture, writing CloudFormation/CDK/Terraform, or reducing an AWS bill.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added May 27, 2026
developmenttypescriptpythonrustgobashkubernetesawsgcpazureterraform

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill aws-solution-architect --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Aws Solution Architect?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Aws Solution Architect
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-aws-solution-architect/badge)](https://www.skillsdirectory.com/skills/borghei-aws-solution-architect)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aws-solution-architect
description: Recommends an AWS architecture pattern from requirements, checks it against budget and team, generates SAM/CDK/Terraform serverless templates, and finds cost savings in a resource inventory. Use when designing AWS architecture, writing CloudFormation/CDK/Terraform, or reducing an AWS bill.
license: MIT + Commons Clause
metadata:
  version: 1.1.0
  author: borghei
  category: engineering
  domain: cloud-architecture
  updated: 2026-11-08
  tags: [aws, serverless, cloudformation, cost-optimization]
---
# AWS Solution Architect

Design scalable, cost-effective AWS architectures for startups with infrastructure-as-code templates — recommend the right pattern, generate CloudFormation/CDK/Terraform, and optimize spend.

## Core Capabilities

- **Architecture design** — recommend serverless, three-tier, microservices, data-pipeline, GraphQL, IoT, or multi-region patterns from app type, scale, budget, and compliance needs.
- **IaC generation** — produce production-ready CloudFormation (SAM), CDK (TypeScript), and Terraform (HCL) with API Gateway, Lambda, DynamoDB, Cognito, IAM least-privilege, and CloudWatch.
- **Cost optimization** — analyze inventory for idle resources, right-sizing, Savings Plans, storage tiering, and NAT Gateway alternatives with prioritized savings.
- **Service selection** — decision matrices for compute, database, storage, networking, and security.
- **Operational excellence** — monitoring, alarming, disaster recovery (RTO/RPO), and security hardening.

## When to Use

- Designing serverless / three-tier / microservices / data-pipeline / multi-region AWS architecture.
- Writing or generating CloudFormation, CDK, or Terraform infrastructure-as-code.
- Reducing AWS costs, right-sizing, or evaluating Savings Plans / Reserved capacity.
- Selecting AWS services (Lambda, API Gateway, DynamoDB, Aurora, ECS/Fargate, EventBridge, AppSync).
- Setting up CI/CD (CodePipeline, CodeBuild) or migrating workloads to AWS.
- Hardening IAM, VPC, encryption, Cognito, WAF, or planning monitoring (CloudWatch, X-Ray).

## Clarify First

Before designing the architecture, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **App type & scale:** workload type and expected traffic (selects the pattern: serverless, three-tier, microservices, data-pipeline, or multi-region).
- **IaC target:** CloudFormation/SAM, CDK, or Terraform (sets the template format `serverless_stack.py` generates).
- **Budget & compliance constraints:** cost ceiling and any regulatory needs (drive service selection and the cost-optimization recommendations).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Quick Start Workflow

Each script is a command-line tool and an importable class. `--example` prints an input
template; `--format json` gives machine output. Full parameters:
[references/tool-reference.md](references/tool-reference.md).

```bash
# 1. Pattern, service stack, rough monthly cost, and conflicts with your budget/team
python3 scripts/architecture_designer.py assets/sample_input_fits.json
python3 scripts/architecture_designer.py assets/flawed_input.json --format json

# 2. Serverless IaC skeleton (CloudFormation SAM, CDK TypeScript or Terraform)
python3 scripts/serverless_stack.py --app-name orders-api --region eu-west-1 --template terraform --output main.tf

# 3. Savings from a resource inventory and current spend
python3 scripts/cost_optimizer.py assets/sample_resources.json --monthly-spend 2000
```

Real output of the third command (trimmed):

```
FIX 8 findings: potential savings $159.15/month of $2,000.00 (7.96%)
Read: cloudwatch_log_groups, ec2_instances, elastic_ips, has_budget_alerts, ...
Savings are heuristics (flat percentages of the costs you supplied), not AWS quotes.
- [high] EC2: EC2 instances with <10% CPU utilization: t3.large (8% CPU)
    Fix: Stop or terminate idle instances, or downsize to smaller instance types (saves ~$30/month)
```

## Tools Overview

| Tool | Purpose | Notes |
|------|---------|-------|
| `architecture_designer.py` | Recommend a pattern + service stack + cost estimate, then check it against your budget and team | Requires `application_type` and `expected_users`; other missing fields are listed as assumed defaults. `--example` prints the shape |
| `serverless_stack.py` | Generate CloudFormation (SAM) / CDK / Terraform serverless templates | `--app-name` lowercase letters, digits, hyphens; `--region` like `us-east-1`; `--template` picks the type |
| `cost_optimizer.py` | Inventory + spend into prioritized savings findings | Needs a resources JSON with at least one known key and `--monthly-spend`. `--example` prints the shape |

## Exit codes

| Code | `architecture_designer.py` | `cost_optimizer.py` | `serverless_stack.py` |
|------|---------------------------|---------------------|-----------------------|
| 0 | recommendation fits your budget and team | no findings | template generated |
| 1 | conflicts found (budget, team fit) | savings or hygiene findings | not used |
| 2 | missing/invalid input file, unknown `application_type`, non-positive numbers | unreadable file, no known keys, listed costs exceed `--monthly-spend` | invalid `--app-name` or `--region` |

Text output starts with a verdict line (`PASS` or `FIX n ...`). Cost figures are heuristic
list-price estimates for comparing options, not a quote; the optimizer's savings are flat
percentages of the costs you supply (30% for commitment pricing, 50% for downsizing idle
instances). Price the final design in the AWS Pricing Calculator.

**Done when:**
1. The chosen pattern is justified against the requirements (traffic, data, team skills, budget), not only the designer's pick.
2. The generated template deploys to a sandbox account (`sam deploy`, `cdk deploy` or `terraform apply`) and is torn down cleanly.
3. IAM is least-privilege, data stores are encrypted and private, and budgets with alerts exist.
4. The monthly cost was checked in the AWS Pricing Calculator.

## Anti-Patterns

### Kubernetes for a three-person team
**Mistake:** Starting on EKS with service meshes for an MVP with a few thousand users.
**Why it happens:** It matches what large companies run.
**Instead:** Start serverless or with ECS Fargate and move only when a measured constraint demands it. Operating a cluster costs more than the compute.

### Templates straight to production
**Mistake:** Deploying the generated template into the production account unchanged.
**Why it happens:** It validates, so it looks finished.
**Instead:** Treat it as a skeleton: review IAM, add alarms and backups, deploy to a sandbox first.

### Cost estimate as budget
**Mistake:** Quoting the designer's monthly figure to finance.
**Why it happens:** A single number is easy to pass on.
**Instead:** Use it to compare patterns; budget from the Pricing Calculator with your real traffic, data transfer and Savings Plans.

## Files

- `scripts/architecture_designer.py`, `scripts/serverless_stack.py`, `scripts/cost_optimizer.py` — the three CLIs above.
- `assets/` — samples per exit code (`sample_input_fits.json`, `flawed_input.json`, `malformed_input.json`, `nonsense_input.json`, `sample_resources.json`, `clean_resources.json`, `malformed_resources.json`), `sample_input.json` + `expected_output.json`, and `contract.json`.
- `references/` — workflow, patterns, service selection, best practices, tool reference.

## Reference Documentation

Load the reference that matches the task — keep this file lean and pull detail on demand:

- **[references/workflow-and-usage.md](references/workflow-and-usage.md)** — the 6-step design→deploy→validate workflow, quick-start scenarios (MVP, scaling, cost optimization, IaC), input-requirements JSON, and output formats. Read when running an end-to-end design.
- **[references/architecture_patterns.md](references/architecture_patterns.md)** — the 6 detailed patterns (serverless, microservices, three-tier, data processing, GraphQL, multi-region) with full service specs. Read when selecting and designing a pattern.
- **[references/service_selection.md](references/service_selection.md)** — decision matrices for compute, database, storage, and messaging. Read when choosing between AWS services.
- **[references/best_practices.md](references/best_practices.md)** — serverless design, cost optimization, security hardening, scalability, plus service limitations, troubleshooting, and success criteria. Read before shipping an architecture.
- **[references/tool-reference.md](references/tool-reference.md)** — full Python API (constructors, methods, requirement/resource dictionaries, examples) for the three tools. Read when invoking the tools programmatically.

## Scope & Limitations

**This skill covers:**
- AWS architecture design for startups and growth-stage companies (serverless, three-tier, microservices, data pipelines, IoT, multi-region patterns)
- Infrastructure-as-code generation for CloudFormation (SAM), CDK (TypeScript), and Terraform (HCL)
- Cost analysis, right-sizing recommendations, and Savings Plans evaluation
- Service selection guidance for compute, database, storage, networking, and security

**This skill does NOT cover:**
- Multi-cloud or hybrid-cloud architectures -- see `engineering/senior-cloud-architect/`, `engineering/azure-cloud-architect/` and `engineering/gcp-cloud-architect/`
- Application-level code, business logic, or framework-specific implementation -- see `engineering/senior-fullstack/` for fullstack development
- Compliance audit execution or regulatory evidence collection -- see `ra-qm-team/` for SOC 2, HIPAA, GDPR, and ISO compliance skills
- AWS account management, organization policies, or billing disputes -- see AWS Support

## Integration Points

| Skill | Integration | Data Flow |
|-------|-------------|-----------|
| `engineering/senior-devops` | CI/CD pipeline configuration for deploying generated IaC templates | Architecture templates flow into DevOps deployment pipelines and monitoring setup |
| `engineering/senior-secops` | Security hardening of generated architectures (IAM policies, WAF rules, GuardDuty) | Architecture design feeds into security review; SecOps findings feed back as architecture constraints |
| `ra-qm-team/soc2-compliance-expert` | Compliance validation of AWS architectures against SOC 2 Trust Services Criteria | Architecture resource inventory feeds into compliance audit; audit findings drive architecture changes |
| `engineering/senior-backend` | Backend service implementation that runs on the designed AWS infrastructure | Architecture patterns define the runtime environment; backend requirements inform service selection |
| `engineering/tech-stack-evaluator` | Technology selection decisions that influence architecture pattern choice | Stack evaluation outputs (database, compute, messaging choices) feed into architecture requirements JSON |
| `c-level-advisor/cto-advisor` | Strategic infrastructure decisions, build-vs-buy, and cloud budget planning | Cost analysis from `cost_optimizer.py` informs CTO budget decisions; CTO constraints flow back as architecture requirements |

Files in this skill

  • SKILL.md23.1 KB
  • assets/expected_output.json1.5 KB
  • assets/sample_input.json426 B
  • references/architecture_patterns.md17.1 KB
  • references/best_practices.md14.2 KB
  • references/service_selection.md11 KB
  • scripts/architecture_designer.py34.8 KB
  • scripts/cost_optimizer.py15.3 KB
  • scripts/serverless_stack.py17.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.