Add Policy in Amazon Bedrock AgentCore samples: tool access control and guardrails in policies (with architecture diagrams)#1768
Merged
BharathiSrini merged 9 commits intoJul 11, 2026
Conversation
…; rename 03-guardrails-as-policies to 02-guardrails-as-policies
…nds; add --form-data-path; update install to @latest
Replace ASCII architecture diagrams with draw.io generated PNG diagrams using official AWS icons (Bedrock AgentCore Gateway, AgentCore Policy, Lambda, Cognito, Bedrock Guardrails) in: - 02-policy/README.md - 02-policy/01-tool-access-with-policy/README.md - 02-policy/02-guardrails-in-policy/README.md The PNGs embed the draw.io diagram XML, so they remain fully editable by opening them in draw.io.
BharathiSrini
previously approved these changes
Jul 10, 2026
|
Latest scan for commit: Security Scan ResultsScan Metadata
SummaryScanner ResultsThe table below shows findings by scanner, with status based on severity thresholds and dependencies: Column Explanations: Severity Levels (S/C/H/M/L/I):
Other Columns:
Scanner Results:
Severity Thresholds (Thresh Column):
Threshold Source: Values in parentheses indicate where the threshold is configured:
Statistics calculation:
|
Per reviewer feedback: the authorization language is no longer strictly Cedar, so refer to the policies simply as 'policies' across all three diagrams (main policy, tool-access, guardrails).
…rails Per reviewer feedback on PR awslabs#1768: refer to Guardrails in the title as Amazon Bedrock Guardrails.
BharathiSrini
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue number: Related PR: #1739 (this PR supersedes it — same branch content plus image-based architecture diagrams, opened on behalf of @BharathiSrini per her request)
Concise description of the PR
This PR contains:
agentcore-policy-nysbranch):02-policy/— end-to-end policy demo: deploy gateway + Lambda tools + Cognito OAuth + Cedar policy engine; NL2Cedar and ABAC scenarios; Strands agent with policy enforcement02-policy/01-tool-access-with-policy/— fine-grained tool access control with Cedar ABAC on JWT claims and NL2Cedar generated policies02-policy/02-guardrails-in-policy/— Bedrock Guardrails content-safety classifiers attached to a gateway as Cedar FORBID rules (ContentFilter / PromptAttack / SensitiveInformation)*.drawiofiles are excluded by the repo.gitignore).User experience
Before: The policy samples were not available in the mainline repo. The READMEs on the feature branch used ASCII art architecture diagrams.
After: Customers can find complete, runnable Policy samples (deploy → demo → cleanup) under
01-features/07-centralize-and-govern-your-ai-infrastructure/02-policy, with professional image-based architecture diagrams using the official Bedrock AgentCore icons in every README.Checklist
If your change doesn't seem to apply, please leave them unchecked.
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.