# Deliver multi-tenant AI analytics at scale with AgentCore and Lake Formation

DevFeed: [Deliver multi-tenant AI analytics at scale with AgentCore and Lake Formation](<https://devfeed.tech/articles/deliver-multi-tenant-ai-analytics-at-scale-with-agentcore-and-lake-formation-119231.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/big-data/deliver-multi-tenant-ai-analytics-at-scale-with-agentcore-and-lake-formation/>)

Author: Fortune Hui

Published: 2026-11-05T15:04:59Z

Content type: article

Language: en

Sources: [AWS Big Data Blog](<https://devfeed.tech/sources/aws-big-data-blog.md>)

Topics: [AWS Lake Formation](<https://devfeed.tech/topics/aws-lake-formation.md>), [Amazon Bedrock AgentCore](<https://devfeed.tech/topics/amazon-bedrock-agentcore.md>), [tenant data protection](<https://devfeed.tech/topics/tenant-data-protection.md>), [Amazon Cognito](<https://devfeed.tech/topics/amazon-cognito.md>), [data lake](<https://devfeed.tech/topics/data-lake.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [access-management](<https://devfeed.tech/tags/access-management.md>), [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agentcore](<https://devfeed.tech/tags/agentcore.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-analytics](<https://devfeed.tech/tags/ai-analytics.md>), [ai-powered](<https://devfeed.tech/tags/ai-powered.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-agentcore](<https://devfeed.tech/tags/amazon-bedrock-agentcore.md>), [amazon-cognito](<https://devfeed.tech/tags/amazon-cognito.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-lake-formation](<https://devfeed.tech/tags/aws-lake-formation.md>), [broker](<https://devfeed.tech/tags/broker.md>), [credential-broker](<https://devfeed.tech/tags/credential-broker.md>), [external](<https://devfeed.tech/tags/external.md>), [lambda](<https://devfeed.tech/tags/lambda.md>), [multi-tenant-data](<https://devfeed.tech/tags/multi-tenant-data.md>), [saas](<https://devfeed.tech/tags/saas.md>), [scale](<https://devfeed.tech/tags/scale.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

The article describes a pattern for isolating external users' data access in an Amazon Bedrock AgentCore analytics agent. Cognito User Pool ID-token claims such as `custom:team` map through an Identity Pool to team-specific IAM roles. AgentCore Gateway validates the access token and forwards the ID token to a minimally privileged Lambda, which brokers temporary user-scoped credentials; Athena queries then run under those credentials, with Lake Formation LF-Tag permissions and data cell filters enforcing table and row access. The Lambda has no Athena, S3, or Glue data permissions. The article contrasts this external-user Cognito model with IAM Identity Center and Trusted Identity Propagation, which it describes as suited to workforce federation. It also outlines CDK deployment prerequisites and a walkthrough that changes Lake Formation grants and filters to extend Team A's access, noting that permission changes may take several minutes to propagate.

## Source excerpt

Governed, multi-tenant data access is a key requirement for SaaS and B2C products that embed AI-powered analytics. This post shows how to combine Amazon Cognito and AWS Lake Formation on Amazon Bedrock AgentCore to enforce row- and column-level data access for external users, with a minimal-privilege Lambda acting as a credential broker.