Amazon Verified Permissions
Externalized, fine-grained authorization for custom applications using Cedar policies, and how it differs from IAM.
Exam tasks: 4.2 (Skill 4.2.1 Amazon Verified Permissions)
The decision: does your application need fine-grained rules over its own resources, decided outside the code and logged, rather than IAM policies or a sign-in service?
Verified Permissions is a managed authorization service for applications you build. Policies are written in the open-source Cedar language and kept in a central policy store. The application asks "may this principal do this action on this resource in this context" and enforces the answer. It does not authenticate users, and it does not control access to AWS resources. IAM does that.
Core facts
| Item | What to remember |
|---|---|
| Language | Cedar. Policies state principal, action, resource and optional conditions |
| Decision model | Default deny. A satisfied forbid policy overrides any satisfied permit policy |
| Policy store | Container for policies, templates and a schema that validates them. One per app or one per tenant for isolation |
| Policy template | Reusable policy with placeholders, linked per user or resource |
| Entity and context data | Principal and resource attributes, group membership and request context feed ABAC and RBAC |
| RBAC and ABAC | Cedar uses principal groups for roles and conditions on attributes for ABAC, and can mix both |
| Identity sources | Principals and groups can come from a Cognito user pool or an OIDC provider. Verified Permissions trusts the authentication already done |
| API Gateway | Policy store can be built from an API: actions and resources come from the API |
| Integrations | Express.js middleware for protecting endpoints |
| Response | Allow or deny plus the IDs of the determining policies |
| Pricing | Tiered by monthly authorization requests, plus policy management API calls |
How the application calls it
- Your app, or an API Gateway Lambda authorizer that Verified Permissions can generate, calls
IsAuthorized,IsAuthorizedWithToken(passing a Cognito or OIDC token from an identity source) orBatchIsAuthorized. - Every decision can be logged, which answers "who could see patient record 88?" for auditors.
permit (
principal in Clinic::Role::"nurse",
action in [Clinic::Action::"viewChart"],
resource
)
when { resource.ward == principal.ward };Verified Permissions versus IAM
| IAM | Verified Permissions | |
|---|---|---|
| Protects | AWS API actions on AWS resources | Actions inside your own application |
| Principals | IAM users, roles, federated sessions | Application users, groups and machine identities |
| Policy language | IAM JSON | Cedar |
| Where policy lives | In the account, evaluated by AWS | Policy store, queried by the application |
| Enforcement | AWS service | Your application code or gateway |
Exam signal
"Multi-tenant SaaS app needs per-user and per-tenant authorization decisions without hard-coding them in the app" is Verified Permissions with a policy store per tenant or shared store plus attributes. "Fine-grained, per-record permissions inside a custom application, managed centrally and outside the code" is also Verified Permissions. "Authenticate mobile users" is Cognito, not Verified Permissions.
Exam trap
Verified Permissions decides but does not enforce. The application must act on the decision. It also assumes users were already authenticated, so pair it with Cognito or another OIDC provider.
Exam trap
Verified Permissions decides but does not enforce. The application must act on the decision. It also assumes users were already authenticated, so pair it with Cognito or another OIDC provider.
Scenarios
Verified Permissions externalizes application authorization, supports forbid rules that override permits (legal hold), and logs decisions. IAM authorizes AWS API calls, not the service's own document operations. Cognito groups are coarse roles without resource rules, and API Gateway resource policies filter callers by account or network, not by document attributes.
Related
- RBAC versus ABAC
- Federation with SAML, OIDC and IAM Identity Center
- Cognito and API Gateway authorizers
- AWS Verified Access
Further reading
RBAC versus ABAC
When role-based access is enough, how tag-based access control scales with fewer policies, where principal tags come from, and the condition keys that implement it.
Permissions boundaries and iam:PassRole
Boundary versus SCP versus session policy, safe delegation of IAM administration, preventing privilege escalation through PassRole, and service-linked roles.