/aws-startups-solution-architecture:multi-tenant-isolationfrom AWS Startups Solution Architecture
Designs or hardens tenant isolation for multi-tenant SaaS on AWS. Covers silo/pool/bridge models per layer, IAM session policies, database partitioning across DynamoDB/Postgres/S3, noisy neighbor containment, and per-tenant cost attribution.
Ships in AWS Startups Solution Architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Tenant isolation is the architectural decision a SaaS startup is least able to reverse and most likely to get wrong under time pressure. Getting it wrong produces either a cross-tenant data leak, which is an existential incident for a company selling to businesses, or a per-tenant cost floor that makes the unit economics never work.
The mistake is treating it as one decision. It is a decision per layer, and the layers can differ.
| Model | What it means | Isolation | Cost per tenant | Where it fits |
|---|---|---|---|---|
| Silo | Dedicated resource per tenant | Strongest, enforced by resource boundary | Highest, floors multiply | Regulated or contractual isolation, or one customer large enough to fund it |
| Pool | Shared resource, logical separation | Weakest, depends on your correctness | Lowest, marginal per tenant | Default for most tenants, especially self-serve |
| Bridge | Shared infrastructure, dedicated slice inside it | Middle, enforced by partition | Low to medium | Pooled compute with per-tenant schema or table |
Pick per layer. A common and correct shape: pooled compute, bridge-model database (schema or partition key per tenant), siloed only for the customer whose contract requires it.
The trap. Going full silo because it is easier to reason about, then discovering the fixed floors multiply by tenant count. Each dedicated Aurora Serverless v2 cluster carries a floor around 0.5 ACU whether or not the tenant is active. Each OpenSearch Serverless collection carries a substantial monthly minimum. Ten silo tenants on floored services is a large bill for near-zero usage. Verify current minimums with the aws-billing-and-cost-management skill in aws-core before committing to a silo model, since these change.
The other trap. Going full pool and enforcing isolation with a WHERE tenant_id = ? clause in application code. That makes every future query a potential cross-tenant leak, and the blast radius of one missing predicate is every customer.
If a developer can write a query that returns another tenant's rows, isolation is a code-review problem forever. Push enforcement into a layer that fails closed.
Dynamic session policies. Have the request path assume a role with a scoped-down session policy carrying the tenant identifier, so the credentials themselves cannot reach another tenant's data. The aws-iam skill in aws-core covers AssumeRole and policy authoring mechanics; what matters here is the pattern:
Database-layer enforcement. For Postgres, row-level security with a session variable set from the verified tenant context means a forgotten predicate returns zero rows instead of another tenant's data. That is the correct failure direction. For DynamoDB, put the tenant identifier in the partition key and use IAM leading-key conditions.
Test the negative case. An isolation test that only asserts a tenant sees their own data proves nothing. Assert that tenant A's credentials, used against tenant B's identifier, are denied. That test is the isolation guarantee. Without it you have an intention.
Pooled compute means one tenant's load degrades everyone. Before it happens:
"Which customers are unprofitable" is unanswerable later if you do not instrument it now, and it is the question that decides pricing.
This is the startup's problem, not the customer's: a prospect big enough to change the runway has asked for something the architecture does not do yet, and the deal is waiting on the answer. It arrives as a sales requirement rather than a technical one, usually mid-deal, so the answer should already exist before it is asked.
Skill("aws-core:aws-iam") for cross-account patterns.Do not restate the mechanics these own. Invoke them directly, and spend the reasoning on the tenancy decision:
Skill("aws-core:aws-iam"): IAM roles, AssumeRole, session policies, and policy conditions.Skill("aws-core:aws-database"): DynamoDB key design, Aurora and Postgres specifics.Skill("aws-core:aws-compute"): Compute capacity and scaling.Skill("aws-core:aws-serverless"): Per-function concurrency and partitioning.Skill("aws-core:aws-messaging-and-streaming"): Queue isolation and per-tenant bulkheads.Skill("aws-core:aws-observability"): Metric dimensions and per-tenant attribution.Skill("aws-core:aws-billing-and-cost-management"): Cost floors, minimums, and allocation tags.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub awslabs/startups --plugin aws-startups-solution-architecture5 skills in this plugin
/agentcore-patternsThis skill should be used when an automated agent's output is published under its own identity and carries weight in someone else's work, such as a reviewer whose verdict lands on a pull request, and the open question is how much authority it has actually earned. Covers which conclusions such an agent may state as settled and which it must hand to a person, why a verdict that moves between runs on unchanged input cannot be allowed to decide anything, handing an uncertain item to a human rather than discarding it, grounding each claim in something computed rather than recalled, and the published-state and recall behaviour that decides whether people keep reading the output or learn to skim it. It should also be used when such an agent is being ignored, contradicts itself between runs, or reports a state that nothing current supports. Not for measuring or improving an agent's own output quality, which belongs to aws-agents:agents-optimize, nor for building, deploying, or hardening an agent./cost-regression-checkThis skill should be used when a company that pays its AWS bill from a fixed monthly ceiling, often funded by credits, asks what a pull request or other infrastructure-as-code change (Terraform, AWS CDK, or AWS CloudFormation) will add to that bill before apply, or wants that cost on every pull request, including through Infracost or another estimator in CI. It reports two numbers at list price before credits: the fixed monthly floor added at zero traffic, and the change in cost per unit of the team's own usage, against absolute thresholds derived from the ceiling and kept in the repository. It sets up a CI job and a repository-owned script so the author and the bill owner decide on each pull request. Not for spend that already happened (aws-core:aws-billing-and-cost-management), price lookups with no change under review, advice on infrastructure code as it stands, general release risk, or choosing services that avoid a floor./hcls-stack-checkReads an AWS account's resource inventory (a live AWS Resource Explorer pull, or a local export) and reports two facts per resource: whether its service is on AWS's published HIPAA Eligible Services Reference list, and whether it sits in an EU region / whether the service offers an EU region. Factual membership + region check only, NOT a compliance assessment and NOT legal advice. Use when someone asks about HIPAA eligibility, EU data residency, HCLS readiness, ghost instances, or "what is running in my account and where." Triggers: HIPAA eligible, HIPAA eligibility, EU data residency, EU region check, HCLS readiness, stack readiness, check my stack, ghost instances, what is running in my account, is my stack in the EU./self-hosted-llm-batch-inferenceThis skill should be used when a startup without a dedicated ML platform team needs recurring, latency-tolerant offline inference for a self-hosted 1B to 8B generative language model on AWS while minimizing GPU spend and recovering automatically from Spot interruption. It prescribes AWS Batch backed by Amazon ECS Managed Instances Spot, with model artifacts staged in Amazon S3, deterministic input shards, vLLM offline inference on one GPU, bounded retries, and output reconciliation before success. Covers sizing from the real prompt and model footprint, choosing networking without an avoidable idle cost floor, and verifying that results are complete and GPU capacity is gone. Not for online endpoints, training, embeddings, other inference engines, multi-GPU or distributed inference, or one-off experiments where manual rerun is acceptable.Other plugins' skills for the same job