Day 32: AWS I AM

Jeeva-AWSLabsJourney
3 min readDec 2, 2023

--

๐”๐ฌ๐ž๐ซ๐ฌ & ๐†๐ซ๐จ๐ฎ๐ฉ๐ฌ:

๐Ÿ‘‰ Identity and Access Management, Global service

๐Ÿ‘‰ Root account created by default, shouldnโ€™t be used or shared

๐Ÿ‘‰ Users are people within your organization, and can be grouped / Groups only contain users, not other groups

๐Ÿ‘‰ Users donโ€™t have to belong to a group, and user can belong to multiple groups

๐๐ž๐ซ๐ฆ๐ข๐ฌ๐ฌ๐ข๐จ๐ง๐ฌ:

๐Ÿ‘‰ Users or Groups can be assigned JSON documents called policies (defines the permissions)

๐Ÿ‘‰ We apply the least privilege principle: donโ€™t give more permissions than a user need

๐Ÿ‘‰ Consists of Version, Id, Statement, Sid, Effect, Principal, Action, Resource, Condition

๐๐š๐ฌ๐ฌ๐ฐ๐จ๐ซ๐ ๐๐จ๐ฅ๐ข๐œ๐ฒ:

๐Ÿ‘‰ In AWS, you can setup a password policy

๐Ÿ‘‰ MFA = password you know + security device you own, if a password is stolen or hacked, the account is not compromised

๐ˆ๐€๐Œ ๐‘๐จ๐ฅ๐ž๐ฌ ๐Ÿ๐จ๐ซ ๐’๐ž๐ซ๐ฏ๐ข๐œ๐ž๐ฌ:

๐Ÿ‘‰ Some AWS service will need to perform actions on your behalf โ€” to do so, we will assign permissions to AWS services with IAM Roles

๐ˆ๐€๐Œ ๐’๐ž๐œ๐ฎ๐ซ๐ข๐ญ๐ฒ ๐“๐จ๐จ๐ฅ๐ฌ:

๐Ÿ‘‰ Credentials Report (account-level) โ€” a report that lists all your accountโ€™s users and the status of their various credentials

๐Ÿ‘‰ Access Advisor (user-level) โ€” Access advisor shows the service permissions granted to a user and when those services were last accessed

Users & Groups:

  • Identity and Access Management (IAM): IAM is a global service provided by AWS that enables you to manage access to AWS services and resources securely. It is used to create and manage users, groups, and roles within your AWS environment.
  • Root Account: The root account is created by default when you sign up for AWS. It has complete access to all AWS services and resources. It is highly recommended not to use or share the root account credentials for everyday tasks to enhance security.
  • Users and Groups: Users represent people within your organization, and they can be organized into groups. Groups, however, only contain users and not other groups. Users donโ€™t have to belong to a group, and a user can belong to multiple groups.

Permissions:

  • Policies: IAM policies are JSON documents that define permissions. Users or groups can be assigned policies to specify what actions they are allowed or denied on which resources.
  • Least Privilege Principle: This principle suggests granting users or groups the minimum permissions they need to perform their tasks. It helps to minimize potential security risks.
  • Components of IAM Policy:

Version: The version of the policy language.

Id: An optional identifier for the policy.

Statement: The main section that specifies the permissions.

Sid: An optional statement identifier.

Effect: Whether the policy allows or denies the specified actions.

Principal: The entity that is allowed or denied access.

Action: The specific action(s) the policy allows or denies.

Resource: The AWS resource(s) to which the actions apply.

Condition: Optional conditions that must be satisfied for the policy to take effect.

Password Policy:

  • AWS Password Policy: In AWS, you can set up a password policy to enforce password requirements such as length, complexity, and expiration. This helps enhance the security of user accounts.
  • MFA (Multi-Factor Authentication): MFA combines something you know (password) with something you own (security device). It adds an extra layer of security, and even if a password is compromised, the account remains protected as the attacker would also need the physical device.

IAM Roles for Services:

  • AWS Service Permissions: Some AWS services need to perform actions on your behalf. IAM roles are used to grant permissions to these services. This eliminates the need to embed access keys directly in your applications.

IAM Security Tools:

  • Credentials Report (Account-level): This report provides a list of all users in an AWS account and the status of their various credentials (passwords, access keys, MFA).
  • Access Advisor (User-level): Access Advisor shows the service permissions granted to a user and when those services were last accessed. It helps in understanding and managing user permissions effectively.

--

--

Jeeva-AWSLabsJourney
Jeeva-AWSLabsJourney

Written by Jeeva-AWSLabsJourney

Exploring AWS, cloud, Linux & DevOps. Your guide to navigating the digital realm. Join me on the journey of discovery

No responses yet