AWS Well-Architected Review

AWS Well-Architected Review

Reviews a workload's infrastructure code against the six AWS Well-Architected pillars, draws an architecture diagram and files GitHub issues for the findings.

Skill files1 file
SKILL.md185 lines
1
---
2
name: aws-well-architected-review
3
description: 'Perform an AWS Well-Architected Framework review of the current workload IaC and architecture, generating findings and GitHub issues for improvements.'
4
---
5
6
# AWS Well-Architected Review
7
8
This workflow performs a structured AWS Well-Architected Framework (WAF) review against your workload's IaC files and deployed infrastructure. It identifies risks across all 6 WAF pillars and creates GitHub issues to track remediation.
9
10
## Prerequisites
11
- AWS CLI configured and authenticated
12
- IaC files present in the repository (Terraform, CloudFormation, CDK, or SAM)
13
- GitHub MCP server configured and authenticated
14
15
## Workflow Steps
16
17
### Step 1: Load Well-Architected Framework Reference
18
Fetch current AWS WAF best practices:
19
- `https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html`
20
- Pillar-specific lenses relevant to the workload type (Serverless, SaaS, etc.)
21
22
### Step 2: Discover IaC & Architecture
23
Scan the repository for IaC files:
24
- Terraform: `**/*.tf`
25
- CloudFormation/SAM: `**/*.yaml`, `**/*.json` (CFn templates)
26
- CDK: `lib/**/*.ts`, `bin/**/*.ts`, `cdk.json`
27
28
Identify key AWS services in use (compute, data, networking, security, observability) and generate a Mermaid architecture diagram.
29
30
### Step 3: Pillar-by-Pillar Review
31
32
#### Pillar 1: Operational Excellence
33
- [ ] All infrastructure defined as IaC (no manual console changes)
34
- [ ] Consistent tagging strategy applied across all resources
35
- [ ] CloudWatch alarms defined for key metrics
36
- [ ] Automated deployment pipeline present (no manual deployments)
37
- [ ] CloudTrail enabled for audit logging
38
- [ ] Runbooks or operational documentation present
39
40
#### Pillar 2: Security
41
- [ ] IAM roles use least-privilege policies (no `*` actions without justification)
42
- [ ] No hardcoded credentials in IaC or code
43
- [ ] Secrets managed via Secrets Manager or SSM Parameter Store
44
- [ ] S3 buckets have public access blocked and server-side encryption enabled
45
- [ ] Sensitive resources placed in private subnets
46
- [ ] Security groups restrict inbound to minimum required ports/CIDRs
47
- [ ] KMS encryption enabled for sensitive data stores (RDS, EBS, S3, SQS, DynamoDB)
48
- [ ] SSL/TLS enforced on all endpoints (`enforceSSL: true`)
49
- [ ] GuardDuty enabled (`aws guardduty list-detectors`)
50
- [ ] AWS WAF configured on public-facing APIs and CloudFront distributions
51
- [ ] MFA delete enabled on critical S3 buckets
52
53
#### Pillar 3: Reliability
54
- [ ] Multi-AZ deployments for production databases (RDS Multi-AZ, DynamoDB Global Tables)
55
- [ ] Auto Scaling configured with appropriate policies for EC2/ECS
56
- [ ] S3 versioning and lifecycle policies configured
57
- [ ] RDS automated backups enabled with appropriate retention period
58
- [ ] DynamoDB Point-in-Time Recovery (PITR) enabled
59
- [ ] Dead Letter Queues (DLQ) configured for Lambda, SQS, SNS
60
- [ ] Route 53 health checks configured for DNS failover
61
- [ ] Lambda reserved concurrency set to prevent noisy-neighbor throttling
62
63
#### Pillar 4: Performance Efficiency
64
- [ ] Right-sized instance types (Lambda memory, EC2 type, RDS class)
65
- [ ] Graviton/ARM instances used where available (Lambda `arm64`, EC2 Graviton)
66
- [ ] Caching implemented (ElastiCache, DAX, CloudFront, API Gateway caching)
67
- [ ] CloudFront used for global static content delivery
68
- [ ] Aurora Serverless or DynamoDB On-Demand for variable load patterns
69
- [ ] Lambda Provisioned Concurrency for latency-critical synchronous paths
70
71
#### Pillar 5: Cost Optimization
72
- [ ] EC2 Reserved Instances or Savings Plans for steady-state workloads
73
- [ ] S3 lifecycle policies moving data to cheaper storage tiers
74
- [ ] Lambda `arm64` architecture adopted (20% cost reduction)
75
- [ ] VPC Endpoints for S3/DynamoDB to avoid NAT Gateway charges
76
- [ ] gp2 EBS volumes migrated to gp3 (same performance, 20% cheaper)
77
- [ ] Development/test environments have auto-shutdown schedules
78
- [ ] AWS Budgets and Cost Anomaly Detection configured
79
- [ ] Unattached EBS volumes and idle EC2 instances identified
80
81
#### Pillar 6: Sustainability
82
- [ ] Graviton/ARM instances selected where available
83
- [ ] Serverless/managed services preferred over always-on EC2
84
- [ ] S3 lifecycle policies reduce unnecessary long-term data storage
85
- [ ] Auto Scaling configured to avoid over-provisioning
86
- [ ] Region selection considers AWS renewable energy commitments
87
88
### Step 4: Risk Classification
89
For each finding, classify:
90
- **High Risk**: Security vulnerability, single point of failure, no backup/recovery
91
- **Medium Risk**: Suboptimal reliability, cost inefficiency, performance concern
92
- **Low Risk**: Best practice deviation, minor optimization opportunity
93
94
### Step 5: User Confirmation
95
96
```
97
🏗️ AWS Well-Architected Review Summary
98
99
📊 Review Results:
100
• IaC Files Analyzed: X
101
• AWS Services Identified: Y
102
• Total Findings: Z
103
• High Risk: A (immediate action required)
104
• Medium Risk: B (should address soon)
105
• Low Risk: C (nice to have)
106
107
🔴 Top High Risk Findings:
108
1. [Pillar]: [Finding] — [Why it matters]
109
2. [Pillar]: [Finding] — [Why it matters]
110
111
💡 This will create Z individual GitHub issues + 1 EPIC issue.
112
113
❓ Proceed with creating GitHub issues? (y/n)
114
```
115
116
### Step 6: Create Individual Finding Issues
117
Label with "well-architected" and the pillar name (e.g., "security", "reliability").
118
119
**Title**: `[WAF-<PILLAR>] [Brief Finding] — [Risk Level]`
120
121
**Body**:
122
````markdown
123
## 🏗️ Well-Architected Finding: [Brief Title]
124
125
**Pillar**: [Name] | **Risk Level**: [High/Medium/Low] | **Effort**: [Low/Medium/High]
126
127
### 📋 Description
128
[Clear explanation of the finding and why it matters]
129
130
### 🔧 Remediation
131
132
**IaC Fix** (preferred):
133
```hcl
134
# Terraform example
135
resource "aws_s3_bucket_server_side_encryption_configuration" "example" {
136
bucket = aws_s3_bucket.example.id
137
rule {
138
apply_server_side_encryption_by_default {
139
sse_algorithm = "aws:kms"
140
}
141
}
142
}
143
```
144
145
**AWS CLI fallback**:
146
```bash
147
aws s3api put-bucket-encryption --bucket <name> \
148
--server-side-encryption-configuration '{"Rules":[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"aws:kms"}}]}'
149
```
150
151
### 📚 AWS Reference
152
- [WAF Best Practice Link]
153
- [AWS Documentation Link]
154
155
### ✅ Validation
156
- [ ] Change implemented in IaC and deployed
157
- [ ] AWS Config rule passes (if applicable)
158
- [ ] Security Hub finding resolved (if applicable)
159
160
**Well-Architected Question**: [WAF question this maps to]
161
````
162
163
### Step 7: Create EPIC Tracking Issue
164
Label with "well-architected" and "epic".
165
166
**Title**: `[EPIC] AWS Well-Architected Review — X findings across 6 pillars`
167
168
**Body**: Executive summary with pillar breakdown table (finding counts by pillar and risk level), Mermaid architecture diagram, prioritized checklist linking all individual issues (High → Medium → Low), and success criteria:
169
- All High-risk findings resolved
170
- Medium findings have accepted mitigation plans
171
- No regression in existing CloudWatch alarms or Config rules
172
173
## Error Handling
174
- **No IaC Files Found**: Limit review to live resource discovery via AWS CLI and note the gap
175
- **Insufficient AWS Permissions**: List required read-only permissions for the review
176
- **GitHub Creation Failure**: Output all findings as formatted markdown to console
177
178
## Success Criteria
179
- ✅ All 6 WAF pillars reviewed against IaC and live infrastructure
180
- ✅ All findings classified by risk level and pillar
181
- ✅ Actionable remediation steps with IaC examples for each finding
182
- ✅ GitHub issues created for team tracking
183
- ✅ Architecture diagram generated for EPIC context
184
- ✅ AWS documentation references included
185

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…