IAM Policies Flashcards
What is an IAM policy?
A policy is a document that formally states one or more permissions.
What would happen if a user had both an explicit allow policy & an explicit deny policy set?
By default, an explicit deny policy will always override an explicit allow policy.
Imagine you have a user with multiple policies across various services. What would be the quickest way to revoke access to all services, if for example, they were taking a sabbatical?
You could create an explicit deny policy which would override all their other policies and you could remove that when they come back from their sabbatical.
How long does it take for policies to update / take effect?
They are immediate.
What are some examples of pre-built policy templates?
Administrator: Full access to ALL services
Power user: Admin access except for user/group management
Read only: only view AWS resources
What are the 2 methods of creating new policies?
Using the policy generator or written from scratch.
What is the minimum contents of a policy?
Effect, Action, Resource
Can a user have more than policy assigned at the same time?
Yes, a user can have multiple policies. If conflicts, the denial policies take precedence.
Can policies be attached to resources? eg. EC2 instances
No.