[Report] A Workshop to Learn 4 Tenant Model Patterns for Handling Sensitive Information in AI Agents Embedded in SaaS #AWSreInvent #ARC331

[Report] A Workshop to Learn 4 Tenant Model Patterns for Handling Sensitive Information in AI Agents Embedded in SaaS #AWSreInvent #ARC331

When running AI agents in SaaS products that handle sensitive data, where the data lives matters. Learn deployment models based on AWS's SaaS Anywhere approach.
2026.12.05

This page has been translated by machine translation. View original

Hello, this is Usuda.

Everyone, are you building AI agents into your services? (Greeting)

This is a report on the following workshop held at AWS re:Invent 2026.

For an AI agent offered as SaaS, the workshop introduced a total of four data management architecture patterns, such as encrypting with the customer's key or even taking the AI agent itself into the customer's AWS environment, and it was a hands-on experience using two AWS accounts.

Session Overview

ARC331 | SaaS Agents Anywhere: building distributed agentic deployments

SaaS vendors deploy agents across a spectrum: fully provider-hosted, fully tenant-controlled, and hybrid models in between. Once customers have data residency or cost-visibility requirements, deployment topology determines the operational pattern. In this workshop, build a distributed agentic deployment on AWS spanning your accounts and a tenant's, then exercise the three concerns that surface everywhere on the spectrum: lifecycle management of agents you can't directly see, observability across account boundaries, and reliability when the agent runs somewhere you don't operate. Leave with a working reference deployment you can adapt to your own tenancy model.

ARC331 | SaaS Agents Anywhere: Building Distributed Agent Deployments

There is a range of ways SaaS vendors can deploy agents: fully provider-hosted, fully tenant-controlled, and hybrid models in between. When customers have requirements such as data residency and cost visibility, the deployment topology determines the operational pattern. In this workshop, you will build a distributed agent deployment on AWS that spans your own account and a tenant's account, and actually try out three concerns that surface anywhere along this range: lifecycle management of agents you cannot see directly, observability across account boundaries, and reliability when agents run in a place you do not operate. You will take home a working reference architecture that you can adapt to your own tenancy model.

Report

Overview

Even when you provide a service as SaaS, in some industries, such as when the data customers handle is sensitive, who holds data sovereignty is especially important.

This workshop is an experience where, for a SaaS AI agent, you hand over the "key" and then the "data and execution environment" to the customer in order, and finally learn how the provider operates it from the outside.

Depending on what you place on the customer side, the following four architecture patterns were introduced. The higher the number, the stronger the customer's control, but the provider can no longer see inside, and the ease of operation that is characteristic of SaaS is reduced.

The four architecture patterns of SaaS Anywhere

This way of thinking is called "SaaS Anywhere" and is also introduced on the AWS blog.

https://aws.amazon.com/blogs/apn/patterns-for-deploying-saas-in-remote-environments/

In the workshop, using the first and third as subjects, you experience the problems that arise each time you hand something over to the customer, and the approach to solving them.

What is handed to the customer Problem that arises Approach to the solution
Key (Lab 1) The agent writes its own copies into long-term memory, so information remains even if you delete the original document Encrypt both documents and memory with the customer's KMS key so the customer can stop access at any time through the key policy
Data and execution environment (Lab 2) If the provider can do anything in the customer's account, handing it over is pointless Let calls through only when permissions from both sides are in place. The customer decides the usable tools and what is output externally (guardrails)
Operations (Lab 3) The provider cannot get inside, yet remains responsible for the SLA Share only the logs the customer chooses, narrow down the cause from the outside, and determine whose problem it is to fix

"We don't want to send data outside the company, but we want to use the AI features of SaaS" is a common story in Japan too, so this is useful for both those providing SaaS and those adopting it.

It was an interesting workshop where you go back and forth between two accounts and experience both the handing-over side and the receiving side.

The overall picture of the configuration handled in the workshop is as follows. The scenario involves two fictional companies: IntelliServe (the provider, in the purple frame), which offers SaaS for loan officers, and SecureBank (the customer, in the orange frame), a bank that uses it. The numbers correspond to the three Labs.

Overall picture

Amazon Bedrock AgentCore is used to run the agent, but the main subject is not how to use AgentCore; it is how to divide permissions and responsibilities across accounts.

Workshop Introduction

First, the explanation in slides.

Title

Control Plane and Application Plane

SaaS is considered as divided into a control plane that handles onboarding, billing, and so on, and an application plane where applications, agents, and data stores run.

Control plane and application plane

Why New Deployment Models Are Needed

The reasons the standard SaaS form isn't enough include compliance, cost, legacy systems, and latency.

Motivations for new deployment models

What Is SaaS Anywhere

One option to choose when there are such requirements is SaaS Anywhere, a model that places part or all of the application plane in a remote environment outside the provider.

What is SaaS Anywhere

SaaS Anywhere Deployment Models

These are the four patterns introduced in the overview. This time we cover the first (Lab 1) and third (Lab 2).

SaaS Anywhere deployment models

Considering Trade-offs

The closer you move to the customer side, the more the advantages of SaaS, such as agility and ease of management, are reduced. You need to choose by balancing against the motivation.

Trade-offs

Personas and Responsibilities

In this workshop, you proceed while switching among three roles: a platform engineer at the SaaS vendor IntelliServe, and a loan officer and a security administrator at the bank SecureBank.

Personas and responsibilities

SecureBank's Requirements

These are the demands coming from the customer: keys, data and execution environment, and SLA. As the workshop scenario progresses, the demands become stricter.

SecureBank's requirements

Lab 1 Control Through Encryption

First, only the key becomes the customer's. With everything still running on the provider side, stored data is encrypted with the customer's KMS key. The customer's job is to create the key and manage the key policy.

Lab 1

Lab 2 Onboarding to the Tenant's Account

Next, the customer asks for the AI agent to run in the customer's AWS account as well. Raw data does not leave the customer's account, and the customer reviews, runs, and controls the agent.

Lab 2

Lab 3 Cross-Account Observability

This organizes monitoring after handing the AI agent over to the customer's AWS account. The customer decides which logs are shared, and the provider builds dashboards and alarms using only the shared telemetry. After investigating from the outside, they decide who should fix the issue.

Lab 3

Workshop

Let's get started. Introducing everything would be too much, so I'll keep it brief.

A Workshop Run with Two Accounts

Each participant needs two AWS accounts, and participates using two email addresses and two browsers.

You proceed in a browser-based VS Code (code-server) prepared for each account. The provider side is color-coded purple and the customer side orange, so you can tell at a glance which account you are operating. It looks like this.

Two color-coded development environments

Overall Scenario

The setting is IntelliServe, a vendor offering the SaaS "Lending Workspace" for loan officers, and its largest customer, the bank SecureBank. Lending Workspace has a built-in AI agent that converses with loan officers, researches documents, remembers exchanges, and drafts summaries for underwriting.

Throughout the workshop, we deal with a loan application (LN-4471) from a company called Acme Manufacturing. The same task of having the agent create a summary for this case is redone each time SecureBank's requirements become stricter.

  • Lab 1: The agent automatically takes notes on what the officer said verbally, so those notes are protected together with SecureBank's key
  • Lab 2: The agent moves into SecureBank's account and pulls numbers itself from the core banking system
  • Lab 3: IntelliServe investigates, without going inside, why the agent can no longer use what it remembered

Loan information is the kind of data a bank least wants to let out. The scenario lets you follow, through a single case, how far to shift toward the customer side if a SaaS AI agent is to handle it.

Lab 1: The Customer Holds the Key

We look at how far data can be controlled with the bank side, that is, the SaaS customer, bringing its own key, so-called BYOK.

The agent and the data are in IntelliServe's account, and SecureBank holds only the KMS key. The customer's KMS key is set on the S3 bucket and AgentCore memory. When you request a summary in the SaaS app, information taken from documents and memory is returned with sources. The right side shows the notes the agent wrote down by itself. Incidentally, it worked without problems when I tried it in Japanese, and it even remembered the request "please answer in Japanese." This shows the app in action.

Lab 1 Summary and memory

To make the entrusted data unusable, when SecureBank changes Allow to Deny in the key policy, the agent can no longer read documents or memory, and cannot newly remember anything either. If you restore the permission, everything returns immediately. However, since the data itself remains, revocation is different from deletion.

Response after revoking the key

With BYOK, it was possible to make data in storage and AgentCore memory unreadable, but we learned that the data itself is still located on the SaaS side, and the customer cannot control even its erasure.

Lab 2: Agent and Data Move to the Customer's Account

So that the bank can hold the data itself, the agent is moved into SecureBank's account. SecureBank reviews the provided template from the viewpoint of "could the other party be able to operate in our account?" before deploying, selects the tools to allow, and permits invocation. Invocation goes through only when permissions from both the IntelliServe side and the SecureBank side are in place.

After switching, the agent pulls numbers itself from the core banking system. The SSN is masked by the guardrail, but the account number is visible as is.

Agent's answer running in the customer's account

So SecureBank adds an account number rule to the guardrail and releases it. Since the guardrail is in the customer's account, it can be changed without asking IntelliServe.

Answer with the account number masked as well

Lab 3: Operating Without Seeing Inside

IntelliServe builds dashboards and alarms using only the logs that SecureBank selected and forwarded, and investigates two planted failures from the outside. The logs do not contain the contents of prompts or answers. What can be seen changing on the dashboard are memory errors and a spike in masking by the guardrail.

Dashboard for the tenant

Aggregating the logs and narrowing down the cause, the first, the memory errors, turned out to be a cutoff drill that SecureBank had carried out without notice. IntelliServe's job is to provide evidence, not to change the customer's controls. The second, the spike in masking, was one user repeatedly asking about SSNs, an issue for both companies to handle.

That the goal is not "fixing the failure" but "determining whose problem it is" is very much in character with this deployment model.

Impressions

When holding customer data in SaaS, especially when handling sensitive information, you may consider models that let customers manage the data, starting with BYOK like this.

When using AI agents, there are more aspects to consider, including memory, so referring to this workshop seems like a good idea.


AWS re:Invent 2026まとめ情報

クラスメソッドは2026/11/30〜12/4にラスベガスで開催されるAWSカンファレンスイベント「re:Invent」を今年も特集しました。ぜひ一度ご覧ください。 re:Invent 2026ポータルサイトを見るAWS re:Invent公式サイトはこちら

Share this article

AWSのお困り事はクラスメソッドへ