ferroxlabs/wayland/aws-patterns

Claude Code and agent skill by ferroxlabs/wayland

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Guides expert-level aws architecture patterns implementation: cloud and architecture decision frameworks, production-ready patterns, and concrete templates for aws patterns workflows. Use when the user asks about aws architecture patterns, aws patterns configuration, or cloud best practices for aws projects. Do NOT use when the user needs a different devops cloud capability -- check sibling skills in the devops cloud subcategory.

Install

npx vskill@latest install ferroxlabs/wayland/aws-patterns

SKILL.md

The same SKILL.md was published earlier as ferroxlabs/wayland/aws-patterns.

AWS Patterns

When to Use

Use this skill when:

  • User asks how to architect a specific AWS workload -- web applications, data pipelines, event-driven systems, microservices, or batch processing
  • User needs to choose between competing AWS service options (e.g., SQS vs. Kinesis, ECS vs. EKS vs. Lambda, RDS vs. Aurora vs. DynamoDB)
  • User wants production-ready infrastructure patterns with security controls, scaling configurations, and operational guardrails built in
  • User is designing for specific non-functional requirements: sub-100ms latency, 99.99% availability, data residency compliance, or cost optimization targets
  • User is migrating from on-premises or another cloud and needs AWS-idiomatic equivalents for existing patterns
  • User needs to understand trade-offs between synchronous and asynchronous communication patterns in a distributed AWS system
  • User wants to implement multi-account, multi-region, or multi-AZ strategies for enterprise workloads
  • User asks about specific AWS architectural concerns: cold start mitigation, fan-out patterns, circuit breaking, throttling, backpressure, or dead-letter queue design

Do NOT use this skill when:

  • User needs Terraform or CloudFormation syntax help specifically -- use the IaC skill in the devops-cloud subcategory
  • User needs container orchestration deep dives (Kubernetes cluster configuration, Helm chart authoring) -- use the container-orchestration skill
  • User needs CI/CD pipeline design -- use the ci-cd-pipelines skill
  • User needs general cloud cost optimization without an architecture question -- use the cloud-cost-optimization skill
  • User is asking about a non-AWS cloud provider (Azure, GCP) -- use the appropriate cloud-provider skill
  • User needs application-level design patterns (DDD, CQRS at the code level) without an AWS infrastructure question
  • User needs incident response or AWS outage troubleshooting -- use the cloud-incident-response skill

Process

1. Characterize the Workload

Before recommending any pattern, classify the workload along four axes:

  • Traffic shape: Is demand steady, spiky, bursty, or scheduled? A SaaS application with unpredictable viral traffic needs different patterns than a nightly ETL job. Quantify: requests/second at p50 and p99, burst factor, and ramp speed (seconds to 10x load).
  • Data access pattern: Is the system read-heavy (consider ElastiCache, DAX, CloudFront), write-heavy (consider DynamoDB with write sharding, Kinesis), or mixed (consider Aurora read replicas or CQRS separation)?
  • Coupling tolerance: Can downstream failures be tolerated with degraded responses (use async patterns, SQS, SNS fan-out), or is strict consistency required (synchronous calls with circuit breakers, Step Functions orchestration)?
  • Operational maturity: A team without on-call rotation and runbooks should not operate a self-managed Kafka cluster on EC2 -- use managed services (MSK, Kinesis) even at higher per-unit cost.

Determine the availability tier:

  • Tier 1 (99.99%+): Multi-region active-active or active-passive with Route 53 health checks and automated failover. RTO < 1 minute, RPO near-zero.
  • Tier 2 (99.9%): Multi-AZ within a single region. RDS Multi-AZ, ALB across 3 AZs, ECS with tasks spread across AZs.
  • Tier 3 (99.5%): Single-AZ acceptable for non-production or internal tooling.
2. Select the Compute Pattern

Apply this decision tree:

Is the workload event-driven with discrete, short-lived invocations (< 15 minutes)?

  • Yes, and cold starts are tolerable (async, non-latency-sensitive): Lambda with SQS or SNS triggers
  • Yes, but cold starts are not tolerable (customer-facing synchronous API): Lambda with Provisioned Concurrency or Fargate with pre-warmed containers
  • No, workload is long-running or stateful: proceed below

Is the workload containerized?

  • Yes, and team lacks Kubernetes expertise or wants reduced ops overhead: ECS on Fargate (no cluster management, pay-per-task-second)
  • Yes, and team needs advanced scheduling, custom operators, or runs open-source tooling requiring Kubernetes: EKS with managed node groups (use Karpenter for node autoscaling, not Cluster Autoscaler for new deployments)
  • No: EC2 with Auto Scaling Groups, appropriate for gaming servers, HPC, or workloads requiring specific instance types (GPU, high-memory)

Is the workload a traditional three-tier web application?

  • ALB -- ECS Fargate (or EKS) -- RDS Aurora with read replicas. This covers 80% of web workload patterns.

Compute sizing rules:

  • Lambda: 1,769 MB RAM = 1 vCPU. For CPU-intensive functions, set memory to 1,769 MB or 3,008 MB (1.7 vCPU). Do not set 128 MB for CPU-heavy tasks -- the function will run slower and cost more due to extended duration.
  • Fargate task sizing: start at 0.5 vCPU / 1 GB for lightweight services; 1 vCPU / 2 GB for standard APIs; 2 vCPU / 4 GB for data-intensive processing.
  • EC2: Use Graviton3 (c7g, m7g, r7g) instances for 40% better price-performance than equivalent x86 instances for most workloads. Reserve Spot Instances for stateless, interruption-tolerant workloads to achieve 60-90% cost reduction vs. On-Demand.
3. Select the Data Storage Pattern

Apply the following rules in order:

Relational workload (ACID transactions, complex joins, reporting):

  • Aurora PostgreSQL-compatible: default choice for new relational workloads. Scales storage automatically to 128 TB. Aurora Serverless v2 for variable workloads (scales from 0.5 ACU to 128 ACU in ~1 second).
  • RDS PostgreSQL on Multi-AZ DB instances: choose over Aurora only when you need access to PostgreSQL extensions that Aurora does not support, or when running in a region without Aurora.
  • Read replicas: add when read:write ratio exceeds 4:1, or when read query p99 latency exceeds 100ms under load.

High-throughput key-value or document workload (>10,000 writes/second or single-digit millisecond latency required):

  • DynamoDB: use on-demand capacity for unpredictable workloads; provisioned capacity with Application Auto Scaling for steady traffic (30-40% cheaper). Partition key design is critical -- avoid hot partitions by using high-cardinality keys. For time-series append patterns, append a random suffix (write sharding) or use a composite key with a timestamp component.
  • DynamoDB Accelerator (DAX): in-memory cache with microsecond latency for read-heavy DynamoDB workloads. Reduces DynamoDB read costs by up to 70% for cacheable access patterns.

Large object / binary / unstructured storage:

  • S3 as the default object store. Enable S3 Intelligent-Tiering for objects with unknown or changing access patterns (automatically moves objects between frequent, infrequent, and archive tiers).
  • Use S3 Transfer Acceleration for uploads from globally distributed clients.
  • Enable S3 Versioning and Object Lock for data that requires immutability guarantees (compliance, audit logs).

Caching layer:

  • ElastiCache for Redis 7.x: session storage, rate limiting, leaderboards, pub/sub. Use cluster mode enabled for horizontal scaling beyond a single shard's memory.
  • ElastiCache for Memcached: pure caching workloads where Redis data structures are not needed and multi-threading is valuable.
  • CloudFront: cache at the edge for any content served over HTTP/S, including API responses. Set Cache-Control headers appropriately -- even caching API responses for 5 seconds can reduce origin load by 80% during traffic spikes.

Time-series and analytical workloads:

  • Amazon Timestream: purpose-built for time-series data. Ingestion is 10x cheaper than RDS for equivalent time-series write rates.
  • Amazon Redshift: data warehouse for analytical queries over terabyte-scale datasets. Use RA3 nodes for separation of compute and storage. Enable Redshift Spectrum to query S3 data directly without loading it into Redshift.
  • Amazon Athena: serverless SQL over S3 at $5/TB scanned. Best for ad-hoc analysis or infrequent queries. Use Parquet or ORC columnar formats with partition projection to reduce scan cost by 70-90%.
4. Design the Messaging and Integration Pattern

Choose based on the required semantics:

Fan-out (one publisher, many consumers):

  • SNS topic with multiple SQS queue subscriptions. Each consumer gets an independent copy of the message. This is the standard AWS fan-out pattern.
  • Add message filtering at the SNS subscription level to route events by type without requiring consumers to filter in code.

Work queue (competing consumers, each message processed once):

  • SQS Standard Queue: at-least-once delivery, nearly unlimited throughput. Set visibility timeout to 6x the expected processing time to prevent duplicate processing during retries.
  • SQS FIFO Queue: exactly-once processing within a 5-minute deduplication window, 300 TPS per message group (or 3,000 TPS with batching). Use ONLY when ordering and deduplication are required -- FIFO queues are slower and more expensive.
  • Dead Letter Queue (DLQ): always configure a DLQ on every SQS queue. Set maxReceiveCount to 3-5 depending on retry tolerance. Send DLQ alerts to an SNS topic for operational visibility.

High-throughput streaming (>1,000 events/second, replay required, multiple independent consumers):

  • Kinesis Data Streams: 1 shard = 1,000 writes/second or 1 MB/s. Shard count = max(write_rate/1000, write_throughput_MBps). Enable enhanced fan-out for consumers that need dedicated 2 MB/s throughput per shard. Retain data for 24 hours (default) to 365 days.
  • Amazon MSK (Managed Kafka): use when team already operates Kafka, when ecosystem tooling (Kafka Connect, Kafka Streams) is required, or when Kinesis shard limits are constraining. MSK Serverless for variable throughput without shard management.

Synchronous API integration:

  • API Gateway (HTTP API): lowest latency (~1ms overhead), lowest cost ($1/million requests), supports JWT authorizers and Lambda integrations. Choose for most REST API use cases.
  • API Gateway (REST API): choose when you need request/response transformation, usage plans, API keys, or AWS WAF integration. ~50% more expensive than HTTP API.
  • Application Load Balancer direct-to-target: choose for WebSocket connections, gRPC, or when API Gateway features are not needed and you want to avoid per-request pricing.

Orchestration vs. choreography:

  • Step Functions Standard Workflows: use for business-critical workflows requiring audit trails, human approval steps, or complex error handling. State transitions are persisted -- durable against Lambda/ECS restarts. 2,000 state transitions free, then $0.025 per 1,000.
  • Step Functions Express Workflows: use for high-volume, short-duration workflows (< 5 minutes) where durability between steps is not required. Up to 100,000 executions/second.
  • EventBridge: use for event-driven choreography where services need to react to state changes without knowing about each other. Define event schemas in EventBridge Schema Registry for type safety between producers and consumers.
5. Design the Network and Security Architecture

VPC structure (three-tier standard):

  • Public subnets: ALB, NAT Gateway, bastion hosts. Never deploy application servers or databases in public subnets.
  • Private application subnets: ECS tasks, Lambda (VPC-attached), EC2 application tier. No direct internet access -- outbound through NAT Gateway.
  • Private data subnets: RDS, ElastiCache, OpenSearch. No internet access at all. Accessible only from the application subnets via security group rules.
  • Use /24 CIDR blocks for each subnet (251 usable IPs). Reserve /20 or larger VPC CIDR to allow future expansion.
  • Deploy subnets in at least 3 Availability Zones for Tier 1 and Tier 2 workloads.

This is the start of the file. Read the full SKILL.md on GitHub.

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

Popularity

Repository stars
608
Repository forks
113
7-day trend score
37

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
  • Grok Build (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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ferroxlabs/wayland/aws-patterns/badge)](https://verified-skill.com/skills/ferroxlabs/wayland/aws-patterns)

Something wrong with this skill or its page? Tell us.