Add AgentCore Policy samples: tool access control and guardrails as policies#1739
Open
BharathiSrini wants to merge 5 commits into
Open
Add AgentCore Policy samples: tool access control and guardrails as policies#1739BharathiSrini wants to merge 5 commits into
BharathiSrini wants to merge 5 commits into
Conversation
|
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:
|
…; rename 03-guardrails-as-policies to 02-guardrails-as-policies
…nds; add --form-data-path; update install to @latest
mttanke
requested changes
Jun 23, 2026
| (ABAC) using JWT claims from Cognito. | ||
|
|
||
| ## Architecture | ||
|
|
Contributor
There was a problem hiding this comment.
could we have a real architecture diagram here?
|
|
||
| ## Architecture | ||
|
|
||
| ``` |
Contributor
There was a problem hiding this comment.
could this be a real flow diagram?
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.
Summary
01-tool-access-with-policy/: demonstrates using AgentCore Policy to control which tools an agent can invoke based on request attributes (approval workflows, risk scoring)03-guardrails-as-policies/: demonstrates using Amazon Bedrock Guardrails as a policy layer to filter agent inputs and outputsdeploy.py,cleanup.py, demo scripts, utils (agent + JS tools),requirements.txt, and a READMEFiles added
Test plan
python deploy.py) and verify agent runtime reaches READY statepolicy_demo.pyand confirm tool access is correctly allowed/blocked per policy rulescleanup.pyfor both samples to confirm teardown completes without errors