Deployment Architecture
The demo application consists of three main components:- AWS Verified Permissions Policy Store: Central authorization engine with Cedar policies
- Backend (SAM): API Gateway + Lambda functions for access checks and AI agent
- Frontend: Static HTML files served locally that call the backend APIs
Prerequisites
Before you begin, ensure you have the following installed and configured:Install AWS CLI v2+
Install SAM CLI v1.130+
Cost Considerations
Expected costs for the demo:| Component | Cost | Required For |
|---|---|---|
| AWS Lambda | Free (Free Tier: 1M requests/month) | All features |
| API Gateway | Free (Free Tier: 1M calls/month) | All features |
| AWS Verified Permissions | ~$0.00015 per 1,000 requests | All features |
| Anthropic API | ~$0.25 per 1M tokens (Haiku) | AI agent only |
| Main lab | ≈ $0.00 | index.html |
| Full lab with AI agent | ≈ 0.05 per session | avp-agent.html |
If you only want the main AVP lab without the AI agent, you can use
placeholder for the AnthropicApiKey parameter. The index.html interface does not use the AI features.Deployment Steps
The deployment process follows these steps:Create Policy Store
Set up an empty policy store in AWS Verified Permissions with the schema that defines users, documents, and actions.Continue to Policy Store Setup →
Deploy with SAM
Use AWS SAM to build and deploy the Lambda functions and API Gateway.Continue to SAM Deployment →
Configure Frontend
Update the frontend HTML files with your API Gateway URL.Continue to Frontend Configuration →
What Gets Deployed
AWS Resources
- API Gateway: REST API with CORS enabled for local development
- 3 Lambda Functions:
avp-check-access: Verifies access using AVP’sIsAuthorizedAPIavp-get-users: Returns demo users and resources for the UIavp-agent: AI agent that queries AVP via Anthropic’s Claude
- IAM Roles: Automatically created with permissions for
verifiedpermissions:IsAuthorized
Policy Store Components
- Schema: Defines
User,Document, andRoleentity types with attributes - Policies: You’ll add Cedar policies interactively during the demo
- No data stored: The policy store only contains policies, not actual user/document data
Region Selection
Verify AVP availability in your region on the AWS Regional Services page.Next Steps
Ready to deploy? Start with creating the policy store:Create Policy Store
Set up AWS Verified Permissions with the FinancialApp schema