Amazon Bedrock Managed Knowledge Bases ACLs
To have AWS Context apply the ACLs of documents in a Amazon Bedrock Managed Knowledge Base, complete the following steps:
-
Turn on ACLs when you create the data source in the knowledge base. You can’t turn them on or off later. For the steps for each data source, see Access Control Lists awareness enablement in the Amazon Bedrock User Guide.
-
Connect the knowledge base to your Agent Context. For steps, see Connecting data sources.
-
Give the identity that reads the knowledge base permission to call
bedrock:Retrieveandbedrock:GetDocumentContenton it. If the connection has a data access role, grant the permissions to the role. Otherwise, grant them to the callers' roles. If you map several connections that reach the knowledge base, grant them to the identity of the connection whose mapping you created first (see When several connections reach the same data). AWS Context can usebedrock:GetDocumentContentto check a user’s access to each document. -
If the connection has a data access role, allow it to receive user identities. Add
sts:SetContextto the trust policy statement that lets AWS Context assume the role. -
Make sure that callers send requests with credentials that carry the user’s identity. For setup, see How the user’s identity reaches your sources.
For how AWS Context applies these ACLs, see Unstructured sources: ACLs attached at ingestion.