Prerequisites:
- Complete deployment via SAM (see Setup documentation)
- API Gateway URL from deployment outputs
- Python 3.11+ installed locally
Configure the Frontend
Before starting the server, you need to update the frontend files with your API Gateway URL from the SAM deployment outputs.Locate your API URL
After running Copy the
sam deploy, the outputs will display your API Gateway URL:ApiUrl value for the next step.Update index.html
Open Replace the URL with your actual API Gateway URL.
frontend/index.html in your editor and locate line ~837:Start the Local Server
The demo uses Python’s built-in HTTP server to serve the frontend files.Access the Demo Interfaces
With the server running, open your browser to access the different demo interfaces:Main Demo
Primary AVP authorization demo with interactive UI
AI Agent
Natural language queries with AI-powered AVP access checks
Demo Interface URLs
| URL | Description | Requirements |
|---|---|---|
http://localhost:8000/index.html | Main AVP lab | Policy Store ID |
http://localhost:8000/avp-agent.html | AI agent with natural language | Anthropic API Key in SAM deployment |
Initial Configuration
When you first open the main demo interface:Enter Policy Store ID
In the configuration section at the top of the page, enter your AWS Verified Permissions Policy Store ID.You can find this ID in the AWS Console under Verified Permissions > Your Policy Store.
Troubleshooting
API calls returning CORS errors
API calls returning CORS errors
Make sure you’re accessing the demo via
http://localhost:8000 and not opening files directly with file:// protocol. The browser blocks cross-origin requests from local file URLs.404 errors when checking access
404 errors when checking access
Verify that:
- Your API Gateway URL is correctly configured in both HTML files
- The URL ends with
/prodwithout additional paths - Your Lambda functions are deployed and accessible
Port 8000 already in use
Port 8000 already in use
If port 8000 is occupied, use a different port:Then access the demo at
http://localhost:3333/index.htmlAI agent not responding
AI agent not responding
The AI agent requires:
- A valid Anthropic API Key configured during SAM deployment
- The API Key must have available credits (minimum $5)
- If you used
placeholderduring deployment, the agent will not work
Next Steps
Demo Scenarios
Follow the 5-act demo flow to explore Zero Trust, Cedar policies, ABAC, and forbid precedence