IAM - Identity Access Manager Flashcards
IAM Policies
Identity policies are type of policies that get attached to AWS identities and either ALLOW or DENY access to AWS resources.
Identities are
1. IAM Users
2. IAM groups
3. IAM Roles.
IAM policies or Identity Policy.
It is a set of security statements to AWS
IAM Policy Document
It is a JSON file, which has one or more statements
Structure of Statement
Statement : [
{
“sid” : “FullAccess”,
“Effect” : “Allow”,
“Action” : “[“s3:”],
“Resource” : []
},
{
“sid” : “DenyCatBucket”,
“Effect” : “Deny”,
“Action” : “[“s3:”],
“Resource” : [“arn:aws:s3:::catgifs”, “arn:aws:s3:::catgifs/] – list with aws resources it should be in ARN (amazon resource name format )
},
How does aws handle overlapping permissions.
If there is an overlap with the effect, deny takes the priority over allow.
if there is no effect defined then it is implicitly denied.
AWS policy Priority of granting access to resources
Here is the priority details
1.Explicit DENY
2.Explicit ALLOW
3.IMPLICIT DENY.
Types of Policy
Inline policy
- Use this for Special or Exceptional allow or Deny
managed policy - these are good for 2 main reasons
- Reusable
- low management overhead
There are two types of managed policies
AWS and custom manage policy.
What is an ARN
Amazon Resource Name - Uniquely identifies resources within any AWS accounts.
ARN format
arn:partition:service:region
Max number of IAM user accounts
500 IAM users per account
IAM user can be member of how many groups
10 groups