Alex Moening & Piotrek Witkowski (AWS) · NET321-R1 · December 2, 2026

The PetStore has a catalog to read and orders to place. Both operations arrive at the same URL. A valid login answers who is calling, but the caller might still be stuck in a loop, scraping the catalog or trying to use a tool outside its remit.

Three decisions on the way to the PetStore

Traffic inspection, token validation and Cedar policy protect different layers

AWS WAF inspects traffic volume, size, source and shape. AgentCore Gateway checks the access token. Cedar policy decides which tools that caller may use. Those decisions produce different signals for an operator investigating why a request failed.

Count before changing a rule

Results distinguish requests stopped from requests counted and allowed

The exercise put a looping assistant through a per-token rate limit and sent requests for tools the PetStore never published. The results slide records all eight calls to unknown tools being stopped. A separate injection signature matched eight requests in count mode, which let the team inspect the matches before deciding whether to block them.

The closing example gave an agent access to WAF logs and web ACL configuration so it could advise on tuning. An operator approved changes before they took effect.

AWS re:Invent 2026 · All talks