Full Form Of IAM
Identity & Access Management
Is IAM a Regional or Global service
Global service
What do IAM groups consist of?
only users, they don’t contain other groups.
* Groups can’t contain other groups
In AWS, groups are collections of IAM users. They help organize users, making it easier to manage permissions by assigning policies to a group rather than individual users. This simplifies access management across multiple users with similar roles or permissions.
Is it necessary for users to belong to a group?
No, it’s not necessary for users to belong to a group in AWS. Users can have permissions assigned individually without being part of a group. Groups are just a helpful way to manage permissions more efficiently, especially when multiple users need the same access rights.
Can a user belong to multiple groups ?
Yes
Why do we create users and groups ?
Because we want them to use AWS services with limited permissions
What are IAM: Permissions ?
They JSON documents containing policies.
Assigning capabilities to use specific services.
What is the principle to apply best practice for giving permission to users?
Least privilege principle; Don’t give more permission than a user needs.
True/False
Only root user can create groups and draft policies ?
Best Practice
False.
Admin user should be created as the first user by the root user.
As best practices root user shouldn’t be used more than generating admin user and assigning permissions to admin users.
IAM Policies inheritance: Group level permissions
A user can be in multiple groups
A group can have multiple users and multiple sub groups
A user can not be in any group.
Important IAM policy structure
Effect
The structure of an IAM policy is shown below:
Version
# ID
# Statement/s
## SId
## Effect
## Principal
## Action
## Resource
Facts
IAM
Resource policy
Mark the difference between Resource policy and IAM policy
AM Policies:
Resource Policies:
- Definition: Resource policies control access to specific AWS resources (e.g., S3 buckets, SQS queues) directly.
- Format: Also written in JSON format.
- Scope: Applied directly to AWS resources.
- Purpose: Specify who has access to the resource and what actions they can perform, including granting access across AWS accounts.
Key Difference:
IAM Policies: Control access at the identity level within the AWS account.
Resource Policies: Control access at the resource level, allowing cross-account access and defining permissions directly on the resource.