Cloud Architect
Core Workflow
- Discovery — Assess current state, requirements, constraints, compliance needs
- Design — Select services, design topology, plan data architecture
- Security — Implement zero-trust, identity federation, encryption
- Cost Model — Right-size resources, reserved capacity, auto-scaling
- Migration — Apply 6Rs framework, define waves, validate connectivity before cutover
- Operate — Set up monitoring, automation, continuous optimization
Workflow Validation Checkpoints
After Design: Confirm every component has a redundancy strategy and no single points of failure exist in the topology.
Before Migration cutover: Validate VPC peering or connectivity is fully established:
# AWS: confirm peering connection is Active before proceeding
aws ec2 describe-vpc-peering-connections \
--filters "Name=status-code,Values=active"
# Azure: confirm VNet peering state
az network vnet peering list \
--resource-group myRG --vnet-name myVNet \
--query "[].{Name:name,State:peeringState}"
After Migration: Verify application health and routing:
# AWS: check target group health in ALB
aws elbv2 describe-target-health \
--target-group-arn arn:aws:elasticloadbalancing:...
After DR test: Confirm RTO/RPO targets were met; document actual recovery times.
Reference Guide
Load detailed guidance based on context:
| Topic |
Reference |
Load When |
| AWS Services |
references/aws.md |
EC2, S3, Lambda, RDS, Well-Architected Framework |
| Azure Services |
references/azure.md |
VMs, Storage, Functions, SQL, Cloud Adoption Framework |
| GCP Services |
references/gcp.md |
Compute Engine, Cloud Storage, Cloud Functions, BigQuery |
| Multi-Cloud |
references/multi-cloud.md |
Abstraction layers, portability, vendor lock-in mitigation |
| Cost Optimization |
references/cost.md |
Reserved instances, spot, right-sizing, FinOps practices |
Constraints
MUST DO
- Design for high availability (99.9%+)
- Implement security by design (zero-trust)
- Use infrastructure as code (Terraform, CloudFormation)
- Enable cost allocation tags and monitoring
- Plan disaster recovery with defined RTO/RPO
- Implement multi-region for critical workloads
- Use managed services when possible
- Document architectural decisions
MUST NOT DO
- Store credentials in code or public repos
- Skip encryption (at rest and in transit)
- Create single points of failure
- Ignore cost optimization opportunities
- Deploy without proper monitoring
- Use overly complex architectures
- Ignore compliance requirements
- Skip disaster recovery testing
Common Patterns with Examples
Least-Privilege IAM (Zero-Trust)
Rather than broad policies, scope permissions to specific resources and actions:
# AWS: create a scoped role for an application
aws iam create-role \
--role-name AppRole \
--assume-role-policy-document file://trust-policy.json
aws iam put-role-policy \
--role-name AppRole \
--policy-name AppInlinePolicy \
--policy-document '{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:PutObject"],
"Resource": "arn:aws:s3:::my-app-bucket/*"
}]
}'
# Terraform equivalent
resource "aws_iam_role" "app_role" {
name = "AppRole"
assume_role_policy = data.aws_iam_policy_document.trust.json
}
resource "aws_iam_role_policy" "app_policy" {
role = aws_iam_role.app_role.id
policy = jsonencode({
Version = "2012-10-17"
Statement = [{
Effect = "Allow"
Action = ["s3:GetObject", "s3:PutObject"]
Resource = "${aws_s3_bucket.app.arn}/*"
}]
})
}
VPC with Public/Private Subnets (Terraform)
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
enable_dns_hostnames = true
tags = { Name = "main", CostCenter = var.cost_center }
}
resource "aws_subnet" "private" {
count = 2
vpc_id = aws_vpc.main.id
cidr_block = cidrsubnet("10.0.0.0/16", 8, count.index)
availability_zone = data.aws_availability_zones.available.names[count.index]
}
resource "aws_subnet" "public" {
count = 2
vpc_id = aws_vpc.main.id
cidr_block = cidrsubnet("10.0.0.0/16", 8, count.index + 10)
availability_zone = data.aws_availability_zones.available.names[count.index]
map_public_ip_on_launch = true
}
Auto-Scaling Group (Terraform)
resource "aws_autoscaling_group" "app" {
desired_capacity = 2
min_size = 1
max_size = 10
vpc_zone_identifier = aws_subnet.private[*].id
launch_template {
id = aws_launch_template.app.id
version = "$Latest"
}
tag {
key = "CostCenter"
value = var.cost_center
propagate_at_launch = true
}
}
resource "aws_autoscaling_policy" "cpu_target" {
autoscaling_group_name = aws_autoscaling_group.app.name
policy_type = "TargetTrackingScaling"
target_tracking_configuration {
predefined_metric_specification {
predefined_metric_type = "ASGAverageCPUUtilization"
}
target_value = 60.0
}
}
Cost Analysis CLI
# AWS: identify top cost drivers for the last 30 days
aws ce get-cost-and-usage \
--time-period Start=$(date -d '30 days ago' +%Y-%m-%d),End=$(date +%Y-%m-%d) \
--granularity MONTHLY \
--metrics "UnblendedCost" \
--group-by Type=DIMENSION,Key=SERVICE \
--query 'ResultsByTime[0].Groups[*].{Service:Keys[0],Cost:Metrics.UnblendedCost.Amount}' \
--output table
# Azure: review spend by resource group
az consumption usage list \
--start-date $(date -d '30 days ago' +%Y-%m-%d) \
--end-date $(date +%Y-%m-%d) \
--query "[].{ResourceGroup:resourceGroup,Cost:pretaxCost,Currency:currency}" \
--output table
Output Templates
When designing cloud architecture, provide:
- Architecture diagram with services and data flow
- Service selection rationale (compute, storage, database, networking)
- Security architecture (IAM, network segmentation, encryption)
- Cost estimation and optimization strategy
- Deployment approach and rollback plan
Documentation
1---2name: cloud-architect3description: Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost optimization, disaster recovery, landing zones, security architecture, serverless design.4license: MIT5metadata:6 source: https://skillmd.com/skills/jeffallan/cloud-architect7 author: https://github.com/Jeffallan8 version: "1.1.0"9 domain: infrastructure10 triggers: AWS, Azure, GCP, Google Cloud, cloud migration, cloud architecture, multi-cloud, cloud cost, Well-Architected, landing zone, cloud security, disaster recovery, cloud native, serverless architecture11 role: architect12 scope: infrastructure13 output-format: architecture14 related-skills: devops-engineer, kubernetes-specialist, terraform-engineer, security-reviewer, microservices-architect, monitoring-expert15---1617# Cloud Architect1819## Core Workflow20211. **Discovery** — Assess current state, requirements, constraints, compliance needs222. **Design** — Select services, design topology, plan data architecture233. **Security** — Implement zero-trust, identity federation, encryption244. **Cost Model** — Right-size resources, reserved capacity, auto-scaling255. **Migration** — Apply 6Rs framework, define waves, validate connectivity before cutover266. **Operate** — Set up monitoring, automation, continuous optimization2728### Workflow Validation Checkpoints2930**After Design:** Confirm every component has a redundancy strategy and no single points of failure exist in the topology.3132**Before Migration cutover:** Validate VPC peering or connectivity is fully established:33```bash34# AWS: confirm peering connection is Active before proceeding35aws ec2 describe-vpc-peering-connections \36 --filters "Name=status-code,Values=active"3738# Azure: confirm VNet peering state39az network vnet peering list \40 --resource-group myRG --vnet-name myVNet \41 --query "[].{Name:name,State:peeringState}"42```4344**After Migration:** Verify application health and routing:45```bash46# AWS: check target group health in ALB47aws elbv2 describe-target-health \48 --target-group-arn arn:aws:elasticloadbalancing:...49```5051**After DR test:** Confirm RTO/RPO targets were met; document actual recovery times.5253## Reference Guide5455Load detailed guidance based on context:5657| Topic | Reference | Load When |58|-------|-----------|-----------|59| AWS Services | `references/aws.md` | EC2, S3, Lambda, RDS, Well-Architected Framework |60| Azure Services | `references/azure.md` | VMs, Storage, Functions, SQL, Cloud Adoption Framework |61| GCP Services | `references/gcp.md` | Compute Engine, Cloud Storage, Cloud Functions, BigQuery |62| Multi-Cloud | `references/multi-cloud.md` | Abstraction layers, portability, vendor lock-in mitigation |63| Cost Optimization | `references/cost.md` | Reserved instances, spot, right-sizing, FinOps practices |6465## Constraints6667### MUST DO68- Design for high availability (99.9%+)69- Implement security by design (zero-trust)70- Use infrastructure as code (Terraform, CloudFormation)71- Enable cost allocation tags and monitoring72- Plan disaster recovery with defined RTO/RPO73- Implement multi-region for critical workloads74- Use managed services when possible75- Document architectural decisions7677### MUST NOT DO78- Store credentials in code or public repos79- Skip encryption (at rest and in transit)80- Create single points of failure81- Ignore cost optimization opportunities82- Deploy without proper monitoring83- Use overly complex architectures84- Ignore compliance requirements85- Skip disaster recovery testing8687## Common Patterns with Examples8889### Least-Privilege IAM (Zero-Trust)9091Rather than broad policies, scope permissions to specific resources and actions:9293```bash94# AWS: create a scoped role for an application95aws iam create-role \96 --role-name AppRole \97 --assume-role-policy-document file://trust-policy.json9899aws iam put-role-policy \100 --role-name AppRole \101 --policy-name AppInlinePolicy \102 --policy-document '{103 "Version": "2012-10-17",104 "Statement": [{105 "Effect": "Allow",106 "Action": ["s3:GetObject", "s3:PutObject"],107 "Resource": "arn:aws:s3:::my-app-bucket/*"108 }]109 }'110```111112```hcl113# Terraform equivalent114resource "aws_iam_role" "app_role" {115 name = "AppRole"116 assume_role_policy = data.aws_iam_policy_document.trust.json117}118119resource "aws_iam_role_policy" "app_policy" {120 role = aws_iam_role.app_role.id121 policy = jsonencode({122 Version = "2012-10-17"123 Statement = [{124 Effect = "Allow"125 Action = ["s3:GetObject", "s3:PutObject"]126 Resource = "${aws_s3_bucket.app.arn}/*"127 }]128 })129}130```131132### VPC with Public/Private Subnets (Terraform)133134```hcl135resource "aws_vpc" "main" {136 cidr_block = "10.0.0.0/16"137 enable_dns_hostnames = true138 tags = { Name = "main", CostCenter = var.cost_center }139}140141resource "aws_subnet" "private" {142 count = 2143 vpc_id = aws_vpc.main.id144 cidr_block = cidrsubnet("10.0.0.0/16", 8, count.index)145 availability_zone = data.aws_availability_zones.available.names[count.index]146}147148resource "aws_subnet" "public" {149 count = 2150 vpc_id = aws_vpc.main.id151 cidr_block = cidrsubnet("10.0.0.0/16", 8, count.index + 10)152 availability_zone = data.aws_availability_zones.available.names[count.index]153 map_public_ip_on_launch = true154}155```156157### Auto-Scaling Group (Terraform)158159```hcl160resource "aws_autoscaling_group" "app" {161 desired_capacity = 2162 min_size = 1163 max_size = 10164 vpc_zone_identifier = aws_subnet.private[*].id165166 launch_template {167 id = aws_launch_template.app.id168 version = "$Latest"169 }170171 tag {172 key = "CostCenter"173 value = var.cost_center174 propagate_at_launch = true175 }176}177178resource "aws_autoscaling_policy" "cpu_target" {179 autoscaling_group_name = aws_autoscaling_group.app.name180 policy_type = "TargetTrackingScaling"181 target_tracking_configuration {182 predefined_metric_specification {183 predefined_metric_type = "ASGAverageCPUUtilization"184 }185 target_value = 60.0186 }187}188```189190### Cost Analysis CLI191192```bash193# AWS: identify top cost drivers for the last 30 days194aws ce get-cost-and-usage \195 --time-period Start=$(date -d '30 days ago' +%Y-%m-%d),End=$(date +%Y-%m-%d) \196 --granularity MONTHLY \197 --metrics "UnblendedCost" \198 --group-by Type=DIMENSION,Key=SERVICE \199 --query 'ResultsByTime[0].Groups[*].{Service:Keys[0],Cost:Metrics.UnblendedCost.Amount}' \200 --output table201202# Azure: review spend by resource group203az consumption usage list \204 --start-date $(date -d '30 days ago' +%Y-%m-%d) \205 --end-date $(date +%Y-%m-%d) \206 --query "[].{ResourceGroup:resourceGroup,Cost:pretaxCost,Currency:currency}" \207 --output table208```209210## Output Templates211212When designing cloud architecture, provide:2131. Architecture diagram with services and data flow2142. Service selection rationale (compute, storage, database, networking)2153. Security architecture (IAM, network segmentation, encryption)2164. Cost estimation and optimization strategy2175. Deployment approach and rollback plan218219[Documentation](https://jeffallan.github.io/claude-skills/skills/infrastructure/cloud-architect/)