David Sokolik & Ravid Glam (AWS) · SEC407-R · December 1, 2026

The workshop’s test was simple enough to recognize when it failed. The chatbot could work with S3 and EC2 in us-west-2. Reading secrets, escalating privileges and touching production were outside its remit. The exercise asked whether those limits would hold if someone later attached a much broader policy.

Follow one tool call

Request path from Cognito through AgentCore and Lambda to S3 and EC2

A user signs in through Cognito. AgentCore Runtime validates the token, the Bedrock model picks a tool, and AgentCore Gateway evaluates the call’s arguments against Cedar policy. The Lambda function then uses the tool role to make the AWS request. At that last step IAM evaluates the role, its session context and its permissions boundary.

Give the role administrator access

A permissions boundary caps the effective permissions of a role with AdministratorAccess

The workshop diagram adds AdministratorAccess to the role. The permissions boundary still caps what the role can do. That gives the team two places to express intent. Cedar can decide whether a particular tool call makes sense with these arguments. IAM can keep the underlying role away from production even if the application requests broader access.

AWS re:Invent 2026 · All talks