Make AWS Architecture Decisions Reviewable with AWS Advisor
Cloud architecture questions often arrive as a request for a service name: "Should we use Lambda or ECS?" That framing is too small. The real decision includes traffic shape, operational ownership, data sensitivity, regi
Cloud architecture questions often arrive as a request for a service name: "Should we use Lambda or ECS?" That framing is too small. The real decision includes traffic shape, operational ownership, data sensitivity, regional availability, cost behavior, team skills, and the evidence behind each recommendation.
Tech Leads Club Agent Skills gives AI coding agents reusable workflows for decisions like this. The AWS Advisor skill turns an open-ended AWS question into a documentation-backed architecture, security, and implementation conversation. It is designed for AWS context, not generic infrastructure advice or other cloud providers.
This tutorial uses a small B2B SaaS team moving a TypeScript API and background worker to AWS. The goal is not to make the agent pick a service automatically. The goal is to make the trade-offs, evidence, checks, and remaining human decisions visible before the team commits to an architecture.
What AWS Advisor actually does
AWS Advisor has a distinctive operating rule: search before answering. Its instructions tell the agent to use AWS knowledge tools to verify information, avoid guessing when something is uncertain, adapt recommendations to the user's stack and constraints, consider security by default, and present options rather than hiding trade-offs behind one supposedly universal answer.
The workflow can produce several kinds of structured work:
- architecture recommendations with explicit alternatives and trade-offs;
- documentation-backed answers for AWS services and APIs;
- regional availability checks when the deployment region matters;
- Well-Architected review questions;
- security review checklists;
- architecture validation findings;
- Mermaid diagrams and cost factors to investigate.
The input is not just "design my AWS system." A useful input names the workload, current stack, expected traffic, data classification, availability target, deployment region, team experience, infrastructure-as-code tool, and the speed-versus-control preference.
The output is still an engineering aid, not an approval. A human must verify the account and region, confirm that the cited AWS behavior applies to the intended service configuration, inspect IAM and network boundaries, check actual pricing assumptions, and decide whether the operational burden fits the team.
The scenario: move an API without choosing by habit
Imagine an order-management SaaS with these constraints:
- a TypeScript API with unpredictable daytime traffic;
- a worker that processes invoices and sends notifications;
- customer data that should not be public;
- an existing Terraform codebase;
- a team that knows containers better than serverless operations;
- a first deployment in one AWS region;
- a preference for a small operational footprint, but not at the cost of an opaque failure mode.
A generic prompt might immediately return a Lambda and API Gateway diagram. AWS Advisor should first expose what is missing: request duration, concurrency, queue semantics, retry behavior, cold-start tolerance, observability requirements, deployment workflow, and the team's willingness to operate a container platform.
That difference matters. A useful recommendation can be "compare Lambda plus a managed queue with ECS on Fargate" while explaining why the answer depends on workload shape. The skill's job is to make that reasoning repeatable and evidence-seeking.
Install it in an OpenAI Codex project
The official OpenAI Codex installation page lists the current project-scoped command for one skill:
npx @tech-leads-club/agent-skills install --skill aws-advisor --agent codex
This copies the skill into .codex/skills/aws-advisor/ in the current project. Appending --global installs the skill for every project on the machine instead. The supported-agent catalog has the exact target ID and install path for other agents; do not reuse Codex's command or chat syntax blindly in another tool.
After installation, check that the project contains SKILL.md and the supporting files under .codex/skills/aws-advisor/. The current catalog describes scripts for architecture validation, cost considerations, diagram generation, security review, and Well-Architected review, plus references that the agent can load when needed.
Invoke the exact skill in agent chat
In Codex, explicitly mention the installed skill with $aws-advisor. Keep the selection and the task visible as separate lines:
Use the $aws-advisor skill from Tech Leads Club Agent Skills.
Review this AWS migration proposal for an order-management API and worker.
The API is TypeScript, the infrastructure is Terraform, traffic is spiky,
customer data is private, and the team prefers low operations overhead.
Compare at least two viable architectures and state what evidence is
still missing before we choose one.
Codex also exposes a skills picker. Selecting AWS Advisor there attaches the skill to the request; a plain sentence that mentions its name is not a substitute for selecting or explicitly invoking the installed skill.
Run the discovery gate first
Do not begin by asking for production Terraform. Start with the questions that determine whether a recommendation is meaningful:
Use the $aws-advisor skill from Tech Leads Club Agent Skills.
Before recommending services, list the missing requirements for this design:
request duration, concurrency, queue and retry behavior, data sensitivity,
availability target, region, observability, deployment workflow, and team
operational experience. Ask only the highest-value questions first.
This is where the skill contributes beyond a generic prompt. Its instructions bias the agent toward context collection and documentation search before code examples. If the team answers that the worker can run for twenty minutes, retries must be durable, and the service must stay in a particular region, those facts can change the architecture materially.
Once the constraints are known, ask for a comparison rather than a verdict:
Use the $aws-advisor skill from Tech Leads Club Agent Skills.
Compare Lambda plus a managed queue with ECS on Fargate for the API and
worker described above. Search current AWS documentation first. Cover
scaling behavior, limits, failure handling, IAM boundaries, observability,
deployment complexity, cost drivers, and lock-in. Mark every assumption
that I must confirm in our account and region.
What to expect from the review
The exact response depends on the agent's connected tools, the answers you provide, and the AWS documentation available at the time. The following is an illustrative output shape, not a guaranteed result:
- A short summary of the workload and unresolved constraints.
- Two or more architecture options, each with a fit explanation.
- A list of AWS documentation searches or references supporting important claims.
- Security questions covering identity, private networking, secrets, encryption, and least privilege.
- Cost factors to measure rather than a false precision estimate.
- A recommendation conditional on the stated constraints.
- A verification checklist and the questions that still require a human answer.
For an architecture review, ask the agent to use the bundled structured workflows:
Use the $aws-advisor skill from Tech Leads Club Agent Skills.
Run the Well-Architected review questions and architecture validation for
the selected option. Then generate a Mermaid diagram that shows the request
path, identity boundary, private data stores, queue, worker, and observability
path. Keep the diagram readable and call out any component you inferred.
The skill page lists well_architected_review.py, architecture_validator.py, and generate_diagram.py for this kind of work. The agent can run them from the installed skill directory and use their structured output as a review aid. A generated diagram is not proof that the architecture is correct; it is a compact artifact for the team to inspect.
For security work, keep the scope equally concrete:
Use the $aws-advisor skill from Tech Leads Club Agent Skills.
Perform a security review of this architecture. Focus on IAM trust and
permissions, public versus private network paths, secrets, encryption,
logging of sensitive data, and failure or replay behavior. Produce a
checklist with evidence to collect and findings separated from assumptions.
Verify the result before implementation
Before turning the recommendation into Terraform or CDK, verify it in layers:
- Reopen the AWS documentation for every limit or behavior that affects the decision.
- Confirm service availability and quotas for the actual deployment region.
- Compare the proposed IAM policies with the real trust relationships and data flows.
- Replace guessed traffic and duration values with measurements or explicit ranges.
- Check the cost drivers with the current AWS pricing pages and a small load model.
- Ask the application and operations owners whether the failure and rollback paths are usable.
- Review the generated diagram against the code, not just against the prompt.
If the agent supplies code, review it as a proposal. The AWS Advisor workflow can improve the questions and evidence, but it cannot see undocumented account settings, organizational policies, incident history, or a team's real on-call capacity unless you provide that context.
What this adds beyond a generic AWS prompt
A generic prompt often optimizes for a fast, confident answer. AWS Advisor adds a repeatable discipline around that answer:
- search documentation before asserting a service fact;
- adapt the recommendation to the existing language, IaC, and team experience;
- keep security and cost in the decision frame;
- compare alternatives instead of defaulting to one fashionable service;
- use scripts and checklists to create reviewable artifacts;
- stop at the boundary of AWS rather than pretending the same guidance applies everywhere.
That makes it useful for architecture discovery, security review, migrations, troubleshooting, and learning. It does not replace an AWS account review, a threat model, a cost approval, a production readiness review, or a human decision owner.
AI assistance disclosure
This tutorial was drafted with AI assistance and checked against the current Tech Leads Club catalog, the AWS Advisor skill page, the current OpenAI Codex installation page, and a local installation smoke test. The illustrative outputs are examples of an expected workflow, not claims about a live AWS account.
Sources
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.