IAM Flashcards
What is IAM?
Identity and Access Management
Is IAM a Global or local service?
Global
Defined the privilege principle applied in aws
The least privilege principle: don’t give more permissions than a user needs.
What is an inline policy?
A policy that is only attached to a user
Basic concepts and info of IAM
- Root account is created by default, shouldn’t be used or shared
- Users are people within your organization and can be groupes
- Groups only contain users, not other groups
- Users don’t have to belong to a group
- Users can belong to multiple groups
- Users or Groups can be assigned JSON documents called policies.
- The policies defined the permissions of the users
IAM policy structure
- versions: policy language version
- id: an identifier (optional)
- statement: one or more individual statements (required)
- sid: statement id (optional)
- effect: whether the statement allows or denies access (allow, deny)
- principal: account/user/role to which this policy applied to
- action: list of actions this policies allows/denies
- resource: list of resources to which the actions applied to
- condition: conditions for when this policy is in effect (optional)
IAM password policy
Dictates the rules that the users’ passwords must follow
- set a minimum length
- require specific character types
- allow all IAM users to change their own passwords
- require users to change their password after sometime (password expiration)
- prevent password re-use
What is MFA?
Multi Factor Authentication
Benefit of MFA
If a password is stolen/hacked, the account is not compromised
MFA device options
Virtual MFA device
Universal 2nd Factor Security Key
Hardware Key Fob MFA Device (for AWS GovCloud)
Virtual MFA device
Support for multiple tokens on a single device
Universal 2nd Factor Security Key
Physical device
Support for multiple root and IAM users using a single security key
What are the ways to access AWS?
- AWS Management Console (protected by password + MFA)
- AWS Command Line Interface (CLI) protected by access keys
- AWS Software Developer KIT (SDK) protected by access keys
Access Keys
Are generated through the AWS Console
Users manage their own access keys
What are the Security Tools available?
At the account level, IAM Credentials Report
At the user leve, IAM Access Advisor