Identity and Access Management (AWS IAM) Flashcards
This it to have mastery of the concepts of IAM in AWS
An AWS Service that manages access of AWS Users and Resources
Identity and Access Management (IAM)
End Users who login into the console or interact with AWS resource programmatically
IAM Users
This allows you to group your Users so they share permission levels of group (i.e Administrators, Developers, Auditors
IAM Groups
This allows you to Associate permissions to a role and then assign this to a User or groups
IAM Role
JSON documents which grants permissions for a specific user, group, or role to access service. Policies are attached to IAM Identities
IAM Policies
This is a policy which is managed by AWS which you cannot edit. Managed policies are labeled with an orange bix
Managed Policies
Policy created by the customer which is editable
Customer Managed Policies
It is a Global Service that allows you to manage multiple AWS Accounts
AWS Organization
What are two advantages of AWS Organization?
Consolidated Billing across all accounts
Pricing benefits from aggregated usage (volume discount for EC2 and S3, …)
IAM Policies applied to OU or Accounts to Restrict users and Roles
Service Control Policies
You can include this IAM Condition if you want to restrict the client IP
aws:SourceIp
You can include this IAM Condition if you want to restrict the region the API calls are made to
aws:RequestedRegion
You can include this IAM Condition if you want to restrict based on tags
ec2:ResourceTag
You can include this IAM Condition if you want to force MFA
aws:MultiFactorAuthPresent
IAM for s3
s3ListBucket permission applies to arn:aws:s3:::test which means it is a ____ permission while s3:GetObject, s3:PutObject,s3:DeleteObject applies to arn:aws:s3:::test/* which means it is a ___ permission
bucket level
object level
This can be use in any resource policies to restrict access to accounts that are member of an AWS Organization
aws:PrincipalOrgID
True or False:
When you assume a role (user, application or service), you give up your original permission and take the permission assigned to the role
TRUE
True or False:
When using Resource-based Policy, the principal doesn’t have to give up his permission
True
This enables One Login (single sign-on) for all your AWS Accounts in AWS Organization
AWS IAM Identity Center
A company uses AWS Organization to manage multiple accounts for different departments. The Management account has an Amazon S3 bucket that contains project reports. The company wants to limit access to this S3 bucket to only users of accounts within the organization in AWS organizations.
Which solution meets these requirements with the LEAST amount of operational overhead?
Add the aws:PrincipalOrgID global condition key with a reference to the organization ID to the S3 bucket policy.
https://aws.amazon.com/blogs/security/control-access-to-aws-resources-by