IAM: Identity and Access Management Flashcards
What does IAM stand for?
Identity and Access Management
What is IAM?
Identity and Access Management is the service where AWS user accounts and their access to various AWS servcies is managed.
The common use of IAM is to manage….
- Users
- Groups
- Access policies
- Roles
- User credentials
- User password policies
- Multi-factor authentication (MFA)
- API Keys for programmatic (CLI) access
Root User
User created when you create an AWS account. By default the root user has full administrative rights and access to every part of the account.
What access do new/additional users have in AWS?
They are created with no access to any AWS resources. The only granted access is the ability to log in.
What are AWS Best Practices?
Guidelines that recommend settings, configurations, and architecture for maintaining a high level of security, accessibility, and efficiency.
When a new AWS root account is created, it is best practice to complete the tasks listed in IAM under Security Status, including:
- Delete your root access keys
- Activate MFA on your root account
- Create individual IAM users
- Use groups to assign permissions
- Apply an IAM password policy
What is MFA?
- Multi-Factor Authentication
- It is an addtional layer of security on your root account that is provided by a 3rd party.
- It provides a continually changing, random, six-digit code you need to input (along with your password) when logging in to your root account.
Three types of ways to get an MFA code?
Multi-Factor Authentication
- Virtual MFA device: Smartphone, tablet, use app, such as Google Authenticator
- Hardware key fob: small device goes on keychain. Order directly from AWS.
- API keys for programmatic (CLI) access: Special credentials required for accessing AWS resources via the command line interface (CLI).
Should the Root Account be used for administrative purposes?
No. Best practice is to NEVER use your root account for day-to-day use. If you want full admin access, create an IAM user and attach the AdministratorAccess policy to it. Use that account as your daily driver.
What is an IAM Group?
- An IAM group is a collection of IAM users. Groups allow you to set and manage permissions for multiple users at the same time.
- Group are a more convenient and efficient way to manage account permissions. For example, if our user James were to switch positions within the company, we could easily remove James form his old group and add him to the new group.
IAM Password Policy and Rules
- A password policy dictates the format and expiration rules that a user must follow when creating or modigying their password.
- These rules includes:
- Length requirements
- Case requirements
- Number requirements
- Non-alphanumeric requirements
- Password expiration
- Password reuse
- User rights to change their own password
- Administrator reset requirements
Three main components of an IAM User?
- A username
- A password
- Permissions to access various AWS services
What is a Policy?
Policies assigned to users and groups grant access to AWS resources.
What is a Role?
IAM roles are used to grant one AWS resource access to another resource (e.g. allow EC2 to access S3)