IAM Flashcards
(14 cards)
What is IAM?
Identity and Access Management for AWS
Is it Global? Or region-specific?
It is Global Service
What is main point of IAM?
Create a user and then grouped them
Group
Each group can consist of USers, it impossible to have one group inside other group
IAM Permission
USers and Groups can be assigned to JSON (Plain English) docs called policy
IAM Policies inheritance
Group policies will affect all users in the current group, but if User does not assign to any group, we can have an inline policy specific to User without group
IAM Policies Structure
It is a JSON looks file, consist of:
Version: policy lang version
ID: an identifier for policy (optional)
Statement: one or more statement (required)
Statement consist of:
Sid: an identifier for statement (optional)
Effect: allows or denies access
Principal: account/user/role to which this policy applied to
Action: list of actions this policy allows to denies
Resource: list of resource to which the action applied to
Condition: condition for when this policy is in effect (optional)
How can user access AWS?
AWS Management Console (pass + MFA)
AWS CLI (access key)
AWS SDK - for code (access by keys)
What is the AWS CLI?
A tool that enables you to interact with AWS services using the commands in cli. You can develop scripts to manage resources
Alternative to use AWS Management Console
What is the AWS SDK?
It is set of libraries. Enables you to access and manage AWS services programmatically (for example, you can import library that allows you to create a S3 bucket in your python app)
What is IAM Identity Center
It is ex-AWS SSO service
IAM Role
It is very similar to IAM User, but will not used by physical person, it will be used by AWS services (for example, EC2 instance and it required IAM Role to perform some action)
IAM Security Tools
There are two Security Tools available:
IAM Credentials Report (account-level) - it is a report that lists all accounts users and the status of their creds
IAM Access Advisor (user-level) - it is shows the service permissions granted to a user and when user accessed to service last time
IAM Best Practices
Don’t use the root acc on daily basis, just to setup AWS Account
One user = one AWS user
Assign users to groups and assign permission to groups
Strong password policy
Use MFA
Create and use Roles for AWS services
Access Key for AWS SDK or AWS Cli
Never share IAM users and access keys