IAM, Accounts, and AWS Orgs Flashcards
What are the 3 types of identity policies in AWS?
- IAM
- USER
- ROLE
What is a Policy Document created with?
JSON
What is a policy document?
One or more statements which contain permit or deny actions to products/features/services for an identity which uses/consumes that policy.
What are the 4 categories in a Policy Document?
- Statement ID - what it does
- Effect - permit/deny
- Action - operation you’re trying to perform
- Resource - service or product being used/communicated with q
REVIEW:
You can have overlapping statements in a policy document, but an Explicit Deny statement trumps everything else.
By default, there is an Implicit Deny at the bottom of the statement, denying access to everything i.e the statement starts off with no access to AWS.
Deny, Allow, Deny
What are the 2 main types of policies? (Hint: it’s how they are applied)
- Inline - assigned individually to IAM account; good for exceptional rights/access to a specific user/group/role.
- Managed - policy is created as an object for which user/group/role will point to to then gain access to whatever they need to have access to.
What are the 2 types of Managed Policies?
- AWS Managed
2. Customer Managed
What is a Principal?
A physical person, application, device or process within IAM which wants to authenticate with AWS.
IAM will Authenticate (makes sure the Principal is what it says it is) and then Authorize (attach appropriate policy/statement).
What is an Amazon Resource Name (ARN)?
Method of uniquely identifying resources in AWS. This is required when provisioning resources.
Ex. arn:aws:s3:::sportsgifs (where double colon skips the field)
How many IAM Users per AWS account?
How many groups can an IAM User be part of?
5000 users per account.
10 groups per user.
What is a IAM Group?
A container for IAM Users and/or a way to organize IAM users.
REVIEW
IAM users can be part of multiple IAM groups. Policies can be attached INLINE or MANAGED, where Users within a group can also have separate policies assigned via INLINE or MANAGED.
If a user is in multiple groups, they will get the policy associated with that group AND they will also have the policies assigned to them directly.
AWS merges all of these policies into a set of permissions for a specific users.
True/False: Can you “nest” within a Group?
No - you can’t have a group within another group.
How many groups can a single AWS account contain?
300 max.
If more are required, you can open a support ticket to get approval for more Groups.
True/False: Can a Group be a Principal?
No - Groups are not a true “identity”
You can grant access to users within a group, but you can’t grant permissions to a group where all the users in that group suddenly have access.
Ex - you can’t create a resource policy for an S3 bucket and then apply it to the Developers Group, where the Dev Group is the acting “Identity” or Principal.