← Blog

Kubernetes · Platform engineering · SaaS

How Much Can a Single Tenant Definition Provision on Amazon EKS?

What I learned working through an AWS multi-tenant EKS workshop in one afternoon. A short tenant definition in Git turned into namespaces, IAM roles, node pools, a Bedrock model choice and a cost line, and I got to see where the isolation holds and where it needs more work.

Aashaya Aryal

December 3, 2026 · 11 min read

Updated December 4, 2026

AWS workshop diagram showing a tenant resource, kro orchestration, ACK controllers, and AWS service APIs.

On December 3 I had a three-hour window in an AWS-hosted workshop called Building AI-Ready SaaS Platforms: The Multi-Tenant Foundation for Agentic Workloads on EKS, and I got through all of it. The app was a number-guessing game, which sounds rather unserious but don't let that fool you: underneath it was about how a platform can give a new customer their own slice of infrastructure, limit what that customer is allowed to touch, and work out what they cost, without a separate deployment pipeline per tenant.

AWS supplied the application, the reference architecture, the blueprints and a temporary lab environment. I didn't build the platform from scratch. I deployed it in stages, poked at it and tried to understand why each piece was there. This post is my account of that, plus the questions I came away with.

Starting from two running clusters

The lab already had two EKS Auto Mode clusters in us-west-2. saas-control-plane was the GitOps hub and saas-data-plane ran the tenant workloads. They're two separate clusters, not the control plane and worker nodes of one. Before applying anything I checked what I was working with:

BASH
aws sts get-caller-identity
kubectl config get-contexts
aws eks list-clusters
ls -la ~/environment

The workspace had the application source plus two repos that I ended up caring about a lot. saas-platform-configs defines what the platform offers, and saas-workloads holds the instances of those offerings. Argo CD ApplicationSets sync both from CodeCommit into the right cluster. That split means onboarding a tenant is a change to the workloads repo and nothing in the platform itself moves.

Having the clusters ready saved a lot of the three hours. It also meant I never saw the bootstrapping, so I can't say anything about how painful that part is.

Moving the game from mock mode to AWS

I started with the game in mock mode: a Deployment, a Service and an Ingress, with everything kept in memory. It was playable, with no durable storage and no AI clues.

The next step used ACK (AWS Controllers for Kubernetes) to create a DynamoDB table for profiles, sessions and the leaderboard, and an S3 bucket for avatars. With ACK, a Kubernetes object describes a resource that lives outside the cluster. I applied the supplied manifest and waited on its sync condition:

BASH
kubectl apply -f ~/environment/saas-workloads/examples/ack/gaming-dynamodb.yaml
kubectl wait --for=condition=ACK.ResourceSynced \
  tables.dynamodb.services.k8s.aws/gaming-app-table \
  -n gaming --timeout=120s

That wait matters. The API server will happily accept a manifest while the controller is still waiting on AWS, so kubectl apply succeeding doesn't tell you the table exists yet. ACK's ACK.ResourceSynced condition means the resource in AWS matches what the controller wants, so that's the one to wait on.

After that I created the IAM policy, the role and an EKS Pod Identity association, so the pod's ServiceAccount gets short-lived AWS credentials and nobody has to paste an access key into a Deployment. Once I'd pointed the app's environment at the table, the bucket and a Bedrock model, the same image used DynamoDB, S3 and the Bedrock Converse API. If Bedrock isn't available, the game falls back to plain higher/lower feedback. I like that choice, since an optional model call shouldn't be able to break a deterministic game move.

One thing worth knowing if you repeat this: the lab's ALB listens on HTTP only. If your browser upgrades the URL to HTTPS, a healthy deployment looks broken. curl -I http://<ingress-hostname> tells you quickly whether it's the app or the listener. That's a lab shortcut, not something to copy into production.

Why kro matters once there is more than one tenant

By this point I'd applied separate manifests for storage, permissions, identity and the app itself. Doing that once is fine. Doing it for every customer is the part that needs a better interface, and that's where kro (Kube Resource Orchestrator) came in.

A kro ResourceGraphDefinition (RGD) describes a schema, a set of resource templates and how they depend on each other. Once it's registered, you get a new custom resource that stands for the higher-level request.

Diagram

Git: tenant definition

Argo CD

kro: ResourceGraphDefinition

Role and policies

Pod Identity association

Storage: DynamoDB and S3

Deployment and ServiceAccount

ACK controllers

AWS APIs

The tenant definition lands in the cluster through Argo CD. kro expands it into the dependent resources, and ACK turns the AWS-facing ones into real API calls.

I applied the supplied full-app-stack RGD, then created a FullAppStack instance:

BASH
kubectl apply -f ~/environment/saas-workloads/examples/kro/full-app-stack.yaml
kubectl wait rgd full-app-stack --for=jsonpath='{.status.state}'=Active --timeout=60s
kubectl apply -f ~/environment/saas-workloads/examples/kro/gaming-app-stack.yaml
kubectl wait FullAppStack/gaming-app -n default --for=condition=Ready --timeout=600s

Shorter commands aren't the real win. The graph writes down dependencies that usually live in a script or in someone's head: the IAM role needs its policies, Pod Identity needs the role and the ServiceAccount, and the app config needs the storage names. By the end I had three things reconciling, each doing a different job:

  • Argo CD syncs desired state from Git into Kubernetes.
  • kro expands a high-level resource into the resources it depends on.
  • ACK reconciles the AWS resources behind their Kubernetes objects.

The RGD schema is also an API that other people will depend on. Changing it deserves the same compatibility thinking as changing a public endpoint, and I didn't get to try that in the lab (more on that at the end).

Onboarding four tenants through Git

The lab then moved from FullAppStack to a modular Tenant resource. One graph picks a Basic or Pro package using CEL conditions. Basic tenants point at shared resources with externalRef, and Pro tenants get dedicated ones.

I onboarded three Basic tenants (tenant-001 to tenant-003) and one Pro tenant (tenant-004). After creating the shared resource package, adding a tenant was a Git operation:

BASH
cd ~/environment/saas-workloads
cp examples/kro/tenant-basic-0{1,2,3}.yaml tenants/
git add tenants/
git commit -m "feat: onboard basic tenants"
git push origin main

Then I checked both clusters to watch it land:

BASH
kubectl --context control-plane get application saas-data-plane-tenants -n argocd
kubectl --context data-plane get tenant -n tenants
kubectl --context data-plane get hpa -n tenant-004
kubectl --context data-plane get nodepool pro-tenant-004

The two tiers ended up quite different:

BasicPro
ComputeShared NodePoolTenant-specific NodePool
S3 and DynamoDBShared, with scoped accessDedicated bucket and table
Replicas13 to start
HPANone3 to 10 replicas
Bedrock modelNova MicroNova Lite
Analytics featureOffOn
AWS identityPer-tenant IAM rolePer-tenant IAM role

The app image is the same for both. Replicas, node pool, feature flag and model are all configuration, so the platform can sell different service levels without separate releases.

Dedicated compute has a cost, though. A Pro node pool can sit mostly idle, while a shared pool can let one tenant crowd out another. The Pro pool in the lab had a ceiling of 20 vCPU and 40 GiB of memory. That's a useful limit but it isn't a load test, and I didn't run one.

Diagram

pro-tenant-004 NodePool

Shared NodePool

tenant-001

tenant-002

tenant-003

tenant-004 pods

Shared table and bucket

Dedicated table and bucket

Keeping the Pro model away from Basic tenants

Basic and Pro run the same image but get different Bedrock model IDs:

  • Basic: us.amazon.nova-micro-v1:0
  • Pro: us.amazon.nova-lite-v1:0

Basic gets a short clue and Pro gets a richer, riddle-style one. It's a small feature, but it points at a real problem in AI-enabled SaaS. Swapping the model changes what the same operation costs you.

A feature flag doesn't enforce that. If a Basic pod can call the Pro model directly with its own AWS credentials, the tier boundary only exists in the app code. The workshop includes a negative test, where a Basic tenant's pod tries the Pro model, next to the allowed path. I ran both, and the Basic pod got AccessDeniedException on the Pro model while its own model worked.

That IAM restriction controls which model a tenant can call. It doesn't limit how much they call it. For a production AI feature I'd also want per-tenant metering, token or request budgets, and throttling, because per-tenant roles don't help when everyone is drawing from the same account-level Bedrock quota.

How the workshop tests isolation

Putting each tenant in its own namespace doesn't isolate their data or compute, and the security module is built around that. I'd written about cross-tenant authorization at the application layer before, and this was the same problem seen from the infrastructure side.

Diagram

Tenant workload

Compute
shared or dedicated NodePool

Network
ClusterNetworkPolicy and ApplicationNetworkPolicy

Identity and data
per-tenant IAM role, S3 prefixes, LeadingKeys

Runtime guardrails
Pod Security Admission, quotas, LimitRanges

Each plane answers a different question: where the pods run, who they can talk to, what their credentials allow, and what the cluster will admit.

Each boundary comes with a positive and a negative exercise. I ran them, and every one came back the way the workshop said it would:

BoundaryExerciseResult
ComputeInspect pod placement and NodePoolsBasic pods can share nodes, Pro uses its own pool
IngressConnect from one tenant's pod to another tenant's serviceBlocked
EgressReach S3, then an unapproved external domainS3 works, the external domain is blocked
S3List your own avatar prefix, then another tenant'sOwn prefix allowed, other denied
DynamoDBRead an item with another tenant's partition keyDenied
BedrockInvoke the other tier's modelAuthorization failure
RuntimeSubmit a privileged podRejected at admission
Resource limitsSubmit an oversized DeploymentDeployment is accepted, pod creation is rejected

On the network side, EKS Auto Mode gives you an admin-tier ClusterNetworkPolicy for cluster-wide ingress rules, and a namespaced ApplicationNetworkPolicy that limits egress to approved AWS domains, with baseline rules for DNS and the Pod Identity agent. Both are v1alpha1 APIs in the EKS docs, and the DNS-based rules only apply to nodes launched by Auto Mode.

Diagram

approved AWS domain

not on the list: dropped

Tenant pod

Namespace egress policy

S3 endpoint

Unapproved external domain

Network reachability and authorization are separate things, and this stood out to me. A Basic tenant has to reach the shared S3 endpoint to work at all, so it's IAM that stops it from reading another tenant's objects. The lab does that with scoped avatar prefixes and a dynamodb:LeadingKeys condition, which restricts access by partition key value.

A passing negative GetItem test doesn't prove the database is isolated, though, because the condition only protects the actions it's attached to. Per the DynamoDB docs, Query and the batch and transaction calls can be constrained by leading key, but Scan can't: the docs say it "returns all items regardless of the leading keys". A policy that allows Scan hands over the whole table even if every GetItem is locked down, so I'd leave it out of tenant roles. The docs also say that without a ProjectionExpression a read returns all attributes whatever the policy lists, so attribute limits need dynamodb:Select as well. Index ARNs show up as their own Resource entries in the AWS examples, which is a reminder to review them separately.

I'd go through every action a tenant role allows with that in mind. An application-side filter doesn't count as a boundary if a compromised pod holds direct AWS credentials.

The runtime exercise taught me something small that's easy to miss. A Deployment can be accepted even though its ReplicaSet can never create pods, so you have to look at FailedCreate events instead of trusting that the apply worked. The blueprints also set Pod Security Admission labels, namespace quotas and LimitRanges for each tenant. Basic gets 5 pods and 500m CPU of requests, and Pro gets 20 pods and 4 CPUs. A quota is a budget on what can be requested, not a measure of actual node use.

What offboarding a tenant actually deletes

I removed tenant-003 by deleting its manifest from Git, and Argo CD and the controllers did the rest. The shared pool stayed, since the other Basic tenants still used it.

That's the catch. Removing a Basic tenant doesn't erase its records from the shared table or bucket. Removing a Pro tenant can delete its dedicated storage, and a non-empty S3 bucket can stall the deletion. Because git rm is so easy, I'd want retention, export and backup decisions made before anything destructive can reconcile.

Splitting a shared bill across tenants

The last module was about cost. An EC2 bill can't tell you which of several tenants on one node used the capacity.

Diagram

mapped directly

split by request ratio

needs its own rule

Monthly AWS bill

Dedicated Pro resources
node pool, bucket, table

Shared Basic resources
shared nodes, table, bucket

Shared platform and idle capacity

tenant-004

tenant-001 to 003

Not covered by the ratio

The setup uses CUR 2.0 and QuickSight. EKS split cost allocation attributes EC2 cost to pods by their CPU and memory, and because each tenant has its own namespace, the workshop rolls those pod costs up by tenant. Pods without CPU and memory requests get no split data, and it can take up to 24 hours to show up in CUR. DynamoDB and S3 charges can't be attributed from Kubernetes compute metrics, so the app publishes usage metrics tagged by tenant, tier, service and operation. A Lambda turns them into hourly usage shares in S3, Athena joins the shares with CUR data in Glue, and QuickSight charts the result.

Diagram

App usage metrics
tenant, tier, service, operation

CloudWatch

Lambda: hourly usage shares

S3

CUR 2.0 in S3
cataloged in Glue

Athena

QuickSight

Dedicated Pro resources map straight to their tenant. Shared Basic costs are split by each tenant's share of requests that hour:

TEXT
usage_ratio = tenant_service_requests / total_service_requests
allocated_cost = shared_service_cost × usage_ratio

This is an allocation model and doesn't measure what a tenant really costs. Two DynamoDB requests can use very different capacity, and two S3 requests can move very different amounts of data. A real system would need the actual billing dimensions, a plan for idle capacity and for hours with no requests, and for AI features, model and token usage, including retries that still get billed.

The billing data in the lab was pre-generated so nobody had to wait for CUR delivery. I didn't measure real tenant profitability or savings, so I can't tell you what this setup costs per tenant.

What I'd test next

Everything I ran behaved as the workshop said it would, which is what a guided lab is built to do. The cases that decide whether a declarative platform is pleasant to run are the ones the lab skips:

  • Changing an RGD while tenants are live.
  • An AWS call failing halfway through provisioning.
  • Moving a tenant from Basic to Pro.
  • A deletion stuck on a finalizer.

I'd like to rebuild a small version with two tenants and a tiny DynamoDB-backed API, where I own the blueprint and its failure modes. That would keep the focus on schema changes, reconciliation errors, tenant permissions and deletes, without the whole analytics stack.

If you want to try the workshop yourself, the public Building SaaS on EKS workshop is the closest version. I used the AWS-hosted edition, so steps and the AI exercises may differ. In your own account, read the provisioning and IAM requirements first. Two EKS clusters, load balancers, EC2, Bedrock and the analytics services all cost money.

Key takeaways

  • A tenant definition in Git can drive namespaces, IAM roles, storage, node pools and model choice, but only if the blueprint's dependencies are written down in something like a kro graph.
  • kubectl apply succeeding doesn't mean the AWS resource exists. Wait on the controller's sync or ready condition.
  • Treat an RGD schema like a public API, with the same compatibility review for changes.
  • A feature flag doesn't enforce a pricing tier. Back it with IAM, and add metering and quotas for what IAM can't limit.
  • Test the negative paths: cross-tenant network calls, other tenants' S3 prefixes, DynamoDB reads, rejected pods. Review every permitted action as well: Scan can't be limited by leading key, and indexes and batch calls need their own look.
  • Plan offboarding and data deletion before the first git rm.
  • Per-tenant cost from a shared bill is an allocation. Be clear about its assumptions.

References

AWS provided the sample application, reference architecture, lab instructions and diagrams.